diff options
author | Christopher Faylor <me@cgf.cx> | 2003-12-02 01:36:08 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-12-02 01:36:08 +0000 |
commit | 5c9cceced780c222f8b5e624c97c3b6eda1c8d2c (patch) | |
tree | 21d0f3a5c5e821ef6704c8047511a8423f932c55 /winsup/cygwin | |
parent | 693dd53815929dbe730d7506f806d686ca03a3be (diff) | |
download | cygnal-5c9cceced780c222f8b5e624c97c3b6eda1c8d2c.tar.gz cygnal-5c9cceced780c222f8b5e624c97c3b6eda1c8d2c.tar.bz2 cygnal-5c9cceced780c222f8b5e624c97c3b6eda1c8d2c.zip |
white space
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/thread.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h index 0cba6cd48..b924957e4 100644 --- a/winsup/cygwin/thread.h +++ b/winsup/cygwin/thread.h @@ -144,8 +144,8 @@ public: win32_obj_id = ::CreateSemaphore (&sec_none_nih, 0, LONG_MAX, NULL); if (!win32_obj_id) { - debug_printf ("CreateSemaphore failed. %E"); - return false; + debug_printf ("CreateSemaphore failed. %E"); + return false; } return true; } @@ -242,14 +242,14 @@ List_remove (fast_mutex &mx, list_node *&head, list_node *node) if (head) { if (InterlockedCompareExchangePointer (&head, node->next, node) != node) - { - list_node *cur = head; - - while (cur->next && node != cur->next) - cur = cur->next; - if (node == cur->next) - cur->next = cur->next->next; - } + { + list_node *cur = head; + + while (cur->next && node != cur->next) + cur = cur->next; + if (node == cur->next) + cur->next = cur->next->next; + } } mx.unlock (); } @@ -288,8 +288,8 @@ template <class list_node> class List list_node *cur = head; while (cur) { - (cur->*callback) (); - cur = cur->next; + (cur->*callback) (); + cur = cur->next; } mx.unlock (); } @@ -689,8 +689,8 @@ private: { if (waiting_writers) { - if (!readers) - cond_writers.unblock (false); + if (!readers) + cond_writers.unblock (false); } else if (waiting_readers) cond_readers.unblock (true); |