clean up handling of thread/nothread mode, locking
This commit is contained in:
parent
eb0e8fa0b1
commit
9080cc153c
8 changed files with 16 additions and 27 deletions
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#define UNGET 8
|
||||
|
||||
#define FLOCK(f) ((libc.lockfile && (f)->lock>=0) ? (libc.lockfile((f)),0) : 0)
|
||||
#define FLOCK(f) ((libc.threads_minus_1 && (f)->lock>=0) ? (__lockfile((f)),0) : 0)
|
||||
#define FUNLOCK(f) ((f)->lockcount && (--(f)->lockcount || ((f)->lock=0)))
|
||||
|
||||
#define F_PERM 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue