revise the definition of multiple basic locks in the code

In all cases this is just a change from two volatile int to one.
This commit is contained in:
Jens Gustedt authored and Rich Felker committed 2018-01-09 13:15:27 -05:00
1 parent c4bc0b1a64
commit 32482f61da
15 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ static struct atfork_funcs {
struct atfork_funcs *prev, *next;
} *funcs;
static volatile int lock[2];
static volatile int lock[1];
void __fork_handler(int who)
{
+1 -1
View File
@@ -20,7 +20,7 @@ static struct {
sem_t *sem;
int refcnt;
} *semtab;
static volatile int lock[2];
static volatile int lock[1];
#define FLAGS (O_RDWR|O_NOFOLLOW|O_CLOEXEC|O_NONBLOCK)
+1 -1
View File
@@ -14,7 +14,7 @@ static struct chain {
sem_t target_sem, caller_sem;
} *volatile head;
static volatile int synccall_lock[2];
static volatile int synccall_lock[1];
static volatile int target_tid;
static void (*callback)(void *), *context;
static volatile int dummy = 0;