MXS-1360 Make it possible to specify thread stack size
It is now possible to specify the thread stack size to be used, when a new thread is created. This will subsequently be used for allowing the stack size to be specified for worker threads.
This commit is contained in:
@ -115,7 +115,7 @@ test2()
|
||||
acquire_time = 0;
|
||||
spinlock_init(&lck);
|
||||
spinlock_acquire(&lck);
|
||||
thread_start(&handle, test2_helper, (void *)&lck);
|
||||
thread_start(&handle, test2_helper, (void *)&lck, 0);
|
||||
nanosleep(&sleeptime, NULL);
|
||||
spinlock_release(&lck);
|
||||
thread_wait(handle);
|
||||
@ -222,7 +222,7 @@ test3()
|
||||
{
|
||||
threadrun[i] = 0;
|
||||
tnum[i] = i;
|
||||
thread_start(&handle[i], test3_helper, &tnum[i]);
|
||||
thread_start(&handle[i], test3_helper, &tnum[i], 0);
|
||||
}
|
||||
for (i = 0; i < THREADS; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user