diff options
| author | John Birrell <jb@FreeBSD.org> | 1998-09-30 06:36:56 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1998-09-30 06:36:56 +0000 |
| commit | dc3a8b52c0f870cb23ddea843431bacca03fc629 (patch) | |
| tree | ae55e7dc9f14a22b4e9e0ff67c28ff7d6541727d /lib/libpthread/thread/thr_init.c | |
| parent | 05f3e91279c3769a892dd11d1c779bdbf58aee6d (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
| -rw-r--r-- | lib/libpthread/thread/thr_init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c index 69b0fef563ae..50f3bef8973a 100644 --- a/lib/libpthread/thread/thr_init.c +++ b/lib/libpthread/thread/thr_init.c @@ -251,6 +251,11 @@ _thread_init(void) __set_dynamic_handler_allocator( dynamic_allocator_handler_fn ); #endif /* GCC_2_8_MADE_THREAD_AWARE */ + /* Initialise the garbage collector mutex and condition variable. */ + if (pthread_mutex_init(&_gc_mutex,NULL) != 0 || + pthread_cond_init(&_gc_cond,NULL) != 0) + PANIC("Failed to initialise garbage collector mutex or condvar"); + return; } |
