summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libkse/thread/thr_mutex.c')
-rw-r--r--lib/libkse/thread/thr_mutex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libkse/thread/thr_mutex.c b/lib/libkse/thread/thr_mutex.c
index f7662c7..ec6c0f6 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;
OpenPOWER on IntegriCloud