summaryrefslogtreecommitdiff
path: root/tests/tsd1.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tsd1.c')
-rw-r--r--tests/tsd1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tsd1.c b/tests/tsd1.c
index 9448c10..9926a30 100644
--- a/tests/tsd1.c
+++ b/tests/tsd1.c
@@ -43,6 +43,7 @@
* - output identifies failed component
*/
+#include <sched.h>
#include "test.h"
static pthread_key_t key = NULL;
@@ -87,7 +88,7 @@ mythread(void * arg)
{
while (key == NULL)
{
- Sleep(0);
+ sched_yield();
}
setkey(arg);