* sync.cc (muto::acquire): Fix while/if typo.
This commit is contained in:
		| @@ -1,3 +1,7 @@ | |||||||
|  | Wed Sep 12 21:06:38 2001  Christopher Faylor <cgf@cygnus.com> | ||||||
|  |  | ||||||
|  | 	* sync.cc (muto::acquire): Fix while/if typo. | ||||||
|  |  | ||||||
| Wed Sep 12 23:06:00 2001  Corinna Vinschen <corinna@vinschen.de> | Wed Sep 12 23:06:00 2001  Corinna Vinschen <corinna@vinschen.de> | ||||||
|  |  | ||||||
| 	* wincap.cc (wincapc::init): Simplify W2K/XP case. | 	* wincap.cc (wincapc::init): Simplify W2K/XP case. | ||||||
|   | |||||||
| @@ -82,7 +82,7 @@ muto::acquire (DWORD ms) | |||||||
| 	 case, it is possible for a thread which is going to wait for bruteforce | 	 case, it is possible for a thread which is going to wait for bruteforce | ||||||
| 	 to wake up immediately.  It will then attempt to grab sync but will fail | 	 to wake up immediately.  It will then attempt to grab sync but will fail | ||||||
| 	 and go back to waiting.  */ | 	 and go back to waiting.  */ | ||||||
|       while (tid != this_tid && (was_waiting || InterlockedExchange (&sync, 1) != 0)) |       if (tid != this_tid && (was_waiting || InterlockedExchange (&sync, 1) != 0)) | ||||||
| 	{ | 	{ | ||||||
| 	  switch (WaitForSingleObject (bruteforce, ms)) | 	  switch (WaitForSingleObject (bruteforce, ms)) | ||||||
| 	      { | 	      { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user