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:
Johan Wikman
2017-08-14 14:17:17 +03:00
parent bdb0f7d8d7
commit e9b2a560b8
13 changed files with 87 additions and 54 deletions

View File

@ -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++)
{