diff options
Diffstat (limited to 'tests/cleanup2.c')
-rw-r--r-- | tests/cleanup2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cleanup2.c b/tests/cleanup2.c index 373275b..4d1fafe 100644 --- a/tests/cleanup2.c +++ b/tests/cleanup2.c @@ -103,11 +103,17 @@ mythread(void * arg) assert(bag->started == 0); bag->started = 1; +#ifdef _MSC_VER +#pragma inline_depth(0) +#endif pthread_cleanup_push(increment_pop_count, (void *) &pop_count); sched_yield(); pthread_cleanup_pop(1); +#ifdef _MSC_VER +#pragma inline_depth(8) +#endif return (void *) result; } |