mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
don't GC unregister null thread
GC_unregister_my_thread is only supposed to be called from a thread other than the main thread, so, it should never be called when the system is compiled with null threads. * libguile/threads.c (on_thread_exit)[SCM_USE_NULL_THREADS]: don't call GC_unregister_my_thread
This commit is contained in:
parent
4000d0641f
commit
653ccd78fa
1 changed files with 2 additions and 0 deletions
|
@ -720,7 +720,9 @@ on_thread_exit (void *v)
|
|||
|
||||
scm_i_pthread_setspecific (scm_i_thread_key, NULL);
|
||||
|
||||
#if !SCM_USE_NULL_THREADS
|
||||
GC_unregister_my_thread ();
|
||||
#endif
|
||||
}
|
||||
|
||||
static scm_i_pthread_once_t init_thread_key_once = SCM_I_PTHREAD_ONCE_INIT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue