summaryrefslogtreecommitdiff
path: root/tests/self1.c
diff options
context:
space:
mode:
authorrpj <rpj>2005-04-01 09:13:32 +0000
committerrpj <rpj>2005-04-01 09:13:32 +0000
commit4b8ca0cba45b88803f99b9d91d2a8c7ec7f9f46d (patch)
tree00c397498d8637061ae94bb9051e33245bb998ec /tests/self1.c
parentf63f8cd4f69317850dd5e8d6302acf3fbf849332 (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;
}