From 4d8ffe7f825dfd5be42b7348f8d52224b703a615 Mon Sep 17 00:00:00 2001 From: fadhil riyanto Date: Fri, 11 Oct 2024 22:59:01 +0700 Subject: test thread --- test/pthead_blocking.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/pthead_blocking.c (limited to 'test') 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 +#include +#include + +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 -- cgit v1.2.3