w32 scond: reorder variable declarations and statements for ancient compilers
This commit is contained in:
parent
538442861b
commit
8f6bfd2808
|
@ -396,11 +396,11 @@ void scond_wait(scond_t *cond, slock_t *lock)
|
||||||
|
|
||||||
/* add ourselves to a queue of waiting threads */
|
/* add ourselves to a queue of waiting threads */
|
||||||
struct QueueEntry myentry;
|
struct QueueEntry myentry;
|
||||||
myentry.next = NULL;
|
|
||||||
struct QueueEntry** ptr = &cond->head;
|
struct QueueEntry** ptr = &cond->head;
|
||||||
while(*ptr) /* walk to the end of the linked list */
|
while(*ptr) /* walk to the end of the linked list */
|
||||||
ptr = &((*ptr)->next);
|
ptr = &((*ptr)->next);
|
||||||
*ptr = &myentry;
|
*ptr = &myentry;
|
||||||
|
myentry.next = NULL;
|
||||||
|
|
||||||
cond->waiters++;
|
cond->waiters++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue