diff options
Diffstat (limited to 'tests/cleanup1.c')
-rw-r--r-- | tests/cleanup1.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/cleanup1.c b/tests/cleanup1.c index 2b2ffe4..52a67c7 100644 --- a/tests/cleanup1.c +++ b/tests/cleanup1.c @@ -89,6 +89,7 @@ static void #ifdef __CLEANUP_C __cdecl #endif + increment_pop_count(void * arg) { int * c = (int *) arg; @@ -112,6 +113,9 @@ mythread(void * arg) assert(pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL) == 0); +#ifdef _MSC_VER +#pragma inline_depth(0) +#endif pthread_cleanup_push(increment_pop_count, (void *) &pop_count); /* * We don't have true async cancelation - it relies on the thread @@ -123,6 +127,9 @@ mythread(void * arg) Sleep(100); pthread_cleanup_pop(0); +#ifdef _MSC_VER +#pragma inline_depth(8) +#endif return (void *) result; } |