aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-08-07 21:58:02 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-07 21:58:02 +0200
commit9773f0df7f663ddf666db5a54961ad0228490e60 (patch)
tree2dc3249c9222ddd778f88e58d0e532c411c70cf6
parent138b58514c092e91c5609539aabffde1fe1d5d19 (diff)
use thread attr..
-rw-r--r--src/std/thread.c2
1 files changed, 1 insertions, 1 deletions
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;
}