summaryrefslogtreecommitdiff
path: root/test/pthead_blocking.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/pthead_blocking.c')
-rw-r--r--test/pthead_blocking.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/pthead_blocking.c b/test/pthead_blocking.c
new file mode 100644
index 0000000..18a6538
--- /dev/null
+++ b/test/pthead_blocking.c
@@ -0,0 +1,20 @@
+
+#include <pthread.h>
+#include <stdio.h>
+#include <time.h>
+
+static void* a(void* aa) {
+
+}
+
+
+
+int main()
+{
+ pthread_t abc;
+ pthread_create(&abc, NULL, a, NULL);
+
+ printf("ok\n");
+ pthread_join(abc, NULL);
+ printf("will i printed?\n");
+} \ No newline at end of file