X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fthread.c;h=0f28c30a3e7ba38f913add36ad5ed02445349b21;hb=5e291412ff095a2016388eee8ac265e12d565119;hp=43d551a5d7925c20fc19e992ecd393ca38d1189b;hpb=f78c1fecf191e147ca081026cc11f2683ee80905;p=sbcl.git diff --git a/src/runtime/thread.c b/src/runtime/thread.c index 43d551a..0f28c30 100644 --- a/src/runtime/thread.c +++ b/src/runtime/thread.c @@ -28,6 +28,7 @@ int dynamic_values_bytes=4096*sizeof(lispobj); /* same for all threads */ struct thread *all_threads; volatile lispobj all_threads_lock; extern struct interrupt_data * global_interrupt_data; +extern int linux_no_threads_p; int initial_thread_trampoline(struct thread *th) @@ -230,9 +231,11 @@ void create_initial_thread(lispobj initial_function) { #ifdef LISP_FEATURE_SB_THREAD pid_t create_thread(lispobj initial_function) { - struct thread *th=create_thread_struct(initial_function); + struct thread *th; pid_t kid_pid=0; + if(linux_no_threads_p) return 0; + th=create_thread_struct(initial_function); if(th==0) return 0; kid_pid=clone(new_thread_trampoline, (((void*)th->control_stack_start)+