summaryrefslogtreecommitdiff
path: root/tests/self1.c
diff options
context:
space:
mode:
authorrpj <rpj>2005-04-01 09:00:27 +0000
committerrpj <rpj>2005-04-01 09:00:27 +0000
commitf7d9daf2243a111623aff7856b24632ef49cefcc (patch)
tree8bc4fabc31812fb64d2d4ac558f07908757b01a6 /tests/self1.c
parentf6f9976af7a520dd1aeced4f104f4d4711f28e23 (diff)
''
Diffstat (limited to 'tests/self1.c')
-rw-r--r--tests/self1.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/self1.c b/tests/self1.c
index 773aee1..59498d9 100644
--- a/tests/self1.c
+++ b/tests/self1.c
@@ -54,9 +54,16 @@ main(int argc, char * argv[])
*/
pthread_t self;
+#ifdef PTW32_STATIC_LIB
+ pthread_win32_process_attach_np();
+#endif
+
self = pthread_self();
assert(self.p != NULL);
+#ifdef PTW32_STATIC_LIB
+ pthread_win32_process_detach_np();
+#endif
return 0;
}