summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_spinlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libkse/thread/thr_spinlock.c')
-rw-r--r--lib/libkse/thread/thr_spinlock.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libkse/thread/thr_spinlock.c b/lib/libkse/thread/thr_spinlock.c
index 544ea3c..ad7b222 100644
--- a/lib/libkse/thread/thr_spinlock.c
+++ b/lib/libkse/thread/thr_spinlock.c
@@ -44,6 +44,13 @@
#include "thr_private.h"
+void
+_spinunlock(spinlock_t *lck)
+{
+ lck->access_lock = 0;
+}
+
+
/*
* Lock a location for the running thread. Yield to allow other
* threads to run if this thread is blocked because the lock is
OpenPOWER on IntegriCloud