summaryrefslogtreecommitdiff
path: root/tests/condvar8.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/condvar8.c')
-rw-r--r--tests/condvar8.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/condvar8.c b/tests/condvar8.c
index cef458a..6f2b458 100644
--- a/tests/condvar8.c
+++ b/tests/condvar8.c
@@ -116,12 +116,18 @@ mythread(void * arg)
assert(pthread_mutex_lock(&cvthing.lock) == 0);
+#ifdef _MSC_VER
+#pragma inline_depth(0)
+#endif
pthread_cleanup_push(pthread_mutex_unlock, (void *) &cvthing.lock);
while (! (cvthing.shared > 0))
assert(pthread_cond_timedwait(&cvthing.notbusy, &cvthing.lock, &abstime) == 0);
pthread_cleanup_pop(0);
+#ifdef _MSC_VER
+#pragma inline_depth(8)
+#endif
assert(cvthing.shared > 0);
@@ -211,9 +217,9 @@ main()
failed = !threadbag[i].started;
if (failed)
- {
- fprintf(stderr, "Thread %d: started %d\n", i, threadbag[i].started);
- }
+ {
+ fprintf(stderr, "Thread %d: started %d\n", i, threadbag[i].started);
+ }
}
/*