diff options
Diffstat (limited to 'src/std/thread.c')
-rw-r--r-- | src/std/thread.c | 2 |
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; } |