white space

This commit is contained in:
Christopher Faylor 2003-12-02 01:36:08 +00:00
parent 693dd53815
commit 5c9cceced7
1 changed files with 13 additions and 13 deletions

View File

@ -144,8 +144,8 @@ public:
win32_obj_id = ::CreateSemaphore (&sec_none_nih, 0, LONG_MAX, NULL); win32_obj_id = ::CreateSemaphore (&sec_none_nih, 0, LONG_MAX, NULL);
if (!win32_obj_id) if (!win32_obj_id)
{ {
debug_printf ("CreateSemaphore failed. %E"); debug_printf ("CreateSemaphore failed. %E");
return false; return false;
} }
return true; return true;
} }
@ -242,14 +242,14 @@ List_remove (fast_mutex &mx, list_node *&head, list_node *node)
if (head) if (head)
{ {
if (InterlockedCompareExchangePointer (&head, node->next, node) != node) if (InterlockedCompareExchangePointer (&head, node->next, node) != node)
{ {
list_node *cur = head; list_node *cur = head;
while (cur->next && node != cur->next) while (cur->next && node != cur->next)
cur = cur->next; cur = cur->next;
if (node == cur->next) if (node == cur->next)
cur->next = cur->next->next; cur->next = cur->next->next;
} }
} }
mx.unlock (); mx.unlock ();
} }
@ -288,8 +288,8 @@ template <class list_node> class List
list_node *cur = head; list_node *cur = head;
while (cur) while (cur)
{ {
(cur->*callback) (); (cur->*callback) ();
cur = cur->next; cur = cur->next;
} }
mx.unlock (); mx.unlock ();
} }
@ -689,8 +689,8 @@ private:
{ {
if (waiting_writers) if (waiting_writers)
{ {
if (!readers) if (!readers)
cond_writers.unblock (false); cond_writers.unblock (false);
} }
else if (waiting_readers) else if (waiting_readers)
cond_readers.unblock (true); cond_readers.unblock (true);