diff options
author | fadhil riyanto <me@fadev.org> | 2024-10-11 22:59:01 +0700 |
---|---|---|
committer | fadhil riyanto <me@fadev.org> | 2024-10-11 22:59:01 +0700 |
commit | 4d8ffe7f825dfd5be42b7348f8d52224b703a615 (patch) | |
tree | e49f6b4c65b1edb8cba097661a06135fc1f26d84 /test/pthead_blocking.c | |
parent | f24010d183852deb2d21045d943b600ba5447666 (diff) |
Diffstat (limited to 'test/pthead_blocking.c')
-rw-r--r-- | test/pthead_blocking.c | 20 |
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 |