From 9773f0df7f663ddf666db5a54961ad0228490e60 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 7 Aug 2020 21:58:02 +0200 Subject: use thread attr.. --- src/std/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/std') diff --git a/src/std/thread.c b/src/std/thread.c index 8c6d93a..83db192 100644 --- a/src/std/thread.c +++ b/src/std/thread.c @@ -33,7 +33,7 @@ int amal_thread_create(amal_thread *self, amal_thread_type thread_type, const ch perror("amal_thread_create"); return result; } - if((result = pthread_create(&self->thread_id, NULL, callback_func, userdata)) != 0) { + if((result = pthread_create(&self->thread_id, &self->thread_attr, callback_func, userdata)) != 0) { perror("amal_thread_create"); return result; } -- cgit v1.2.3