Skip to content

Commit 8324672

Browse files
committed
added pthread attributes
1 parent f69e665 commit 8324672

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/lib/native/testlib_threads.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ void run_in_new_thread_and_join(PROCEDURE proc, void* context) {
8181
}
8282
#else
8383
pthread_t thread;
84-
int result = pthread_create(&thread, NULL, procedure, &helper);
84+
pthread_attr_t attr;
85+
pthread_attr_init(&attr);
86+
size_t stack_size = 0x100000;
87+
pthread_attr_setstacksize(&attr, stack_size);
88+
int result = pthread_create(&thread, &attr, procedure, &helper);
8589
if (result != 0) {
8690
fatal("failed to create thread", result);
8791
}

0 commit comments

Comments
 (0)