temporary addition: signalling successful thread creation
(I take it the final implementation will provide something equivalent, without such a check, failure to create the thread results in deadlock)
This commit is contained in:
parent
2f34637088
commit
120fbf8f01
1 changed files with 2 additions and 1 deletions
|
|
@ -98,10 +98,11 @@ lumiera_thread_run (enum lumiera_thread_class kind,
|
|||
pthread_mutex_lock (&threads_mutex);
|
||||
|
||||
pthread_t dummy;
|
||||
pthread_create (&dummy, &attrs, pthread_runner, &thread);
|
||||
int error = pthread_create (&dummy, &attrs, pthread_runner, &thread);
|
||||
|
||||
pthread_mutex_unlock (&threads_mutex);
|
||||
|
||||
if (error) return 0; /////TODO temporary addition by Ichthyo; probably we'll set lumiera_error?
|
||||
return (LumieraThread) 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue