source:
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/stdio/flockfile.c
Last change on this file was 337, checked in by , 6 years ago | |
---|---|
|
|
File size: 186 bytes |
Rev | Line | |
---|---|---|
[337] | 1 | #include "stdio_impl.h" |
2 | #include "pthread_impl.h" | |
3 | ||
4 | void flockfile(FILE *f) | |
5 | { | |
6 | while (ftrylockfile(f)) { | |
7 | int owner = f->lock; | |
8 | if (owner) __wait(&f->lock, &f->waiters, owner, 1); | |
9 | } | |
10 | } |
Note:
See TracBrowser
for help on using the repository browser.