2196. [port] win32: yield processor while waiting for once to

to complete. [RT# 16958]
This commit is contained in:
Mark Andrews
2007-06-18 01:16:46 +00:00
parent bf45f72ed3
commit f05a4bf2bf
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
2196. [port] win32: yield processor while waiting for once to
to complete. [RT# 16958]
2195. [func] dnssec-keygen now defaults to nametype "ZONE"
when generating DNSKEYs. [RT #16954]

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: once.c,v 1.10 2004/03/05 05:11:58 marka Exp $ */
/* $Id: once.c,v 1.11 2007/06/18 01:16:46 marka Exp $ */
/* Principal Authors: DCL */
@@ -41,8 +41,11 @@ isc_once_do(isc_once_t *controller, void(*function)(void)) {
} else {
while (controller->status == ISC_ONCE_INIT_NEEDED) {
/*
* Spin wait.
* Sleep(0) indicates that this thread
* should be suspended to allow other
* waiting threads to execute.
*/
Sleep(0);
}
}
}