From ec5867990b73d5ba6545127cba323e9d8e5d3710 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 9 May 2008 15:05:17 +0000 Subject: [PATCH] I broke pthreads in r25390. The thread pointer was passed in the wrong argument. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25396 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/pthread/pthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/libroot/posix/pthread/pthread.c b/src/system/libroot/posix/pthread/pthread.c index 1a3b7c3774..e4cfb1f99d 100644 --- a/src/system/libroot/posix/pthread/pthread.c +++ b/src/system/libroot/posix/pthread/pthread.c @@ -118,8 +118,8 @@ pthread_create(pthread_t *_thread, const pthread_attr_t *_attr, attributes.entry = pthread_thread_entry; attributes.name = "pthread func"; attributes.priority = attr->sched_priority; - attributes.args1 = thread; - attributes.args2 = NULL; + attributes.args1 = NULL; + attributes.args2 = thread; attributes.stack_address = NULL; attributes.stack_size = attr->stack_size;