diff options
author | John Polstra <jdp@FreeBSD.org> | 2000-11-01 20:19:07 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 2000-11-01 20:19:07 +0000 |
commit | a9bda22cd698374f61b1705da211d68ead9d98ab (patch) | |
tree | a1fbbcb2025774adbcf7ac9739da2fd7c205c3c5 | |
parent | 5231fb205976315032c487476daccfbbb7ae8f5c (diff) |
Notes
-rw-r--r-- | lib/libc_r/uthread/uthread_mutex.c | 3 | ||||
-rw-r--r-- | lib/libkse/thread/thr_mutex.c | 3 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_mutex.c | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc_r/uthread/uthread_mutex.c b/lib/libc_r/uthread/uthread_mutex.c index f7662c71c9515..ec6c0f6f4e6af 100644 --- a/lib/libc_r/uthread/uthread_mutex.c +++ b/lib/libc_r/uthread/uthread_mutex.c @@ -402,6 +402,9 @@ pthread_mutex_lock(pthread_mutex_t * mutex) { int ret = 0; + if (_thread_initial == NULL) + _thread_init(); + if (mutex == NULL) ret = EINVAL; diff --git a/lib/libkse/thread/thr_mutex.c b/lib/libkse/thread/thr_mutex.c index f7662c71c9515..ec6c0f6f4e6af 100644 --- a/lib/libkse/thread/thr_mutex.c +++ b/lib/libkse/thread/thr_mutex.c @@ -402,6 +402,9 @@ pthread_mutex_lock(pthread_mutex_t * mutex) { int ret = 0; + if (_thread_initial == NULL) + _thread_init(); + if (mutex == NULL) ret = EINVAL; diff --git a/lib/libpthread/thread/thr_mutex.c b/lib/libpthread/thread/thr_mutex.c index f7662c71c9515..ec6c0f6f4e6af 100644 --- a/lib/libpthread/thread/thr_mutex.c +++ b/lib/libpthread/thread/thr_mutex.c @@ -402,6 +402,9 @@ pthread_mutex_lock(pthread_mutex_t * mutex) { int ret = 0; + if (_thread_initial == NULL) + _thread_init(); + if (mutex == NULL) ret = EINVAL; |