summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lt_core.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/lt_core.c b/src/core/lt_core.c
index b0c3952..df9f58f 100644
--- a/src/core/lt_core.c
+++ b/src/core/lt_core.c
@@ -38,3 +38,18 @@ int lt_dlexit(void)
return 0;
}
+
+void lt_slock(void)
+{
+ int locked;
+
+ do {
+ locked = pthread_mutex_lock(&lt_lock);
+ } while (locked);
+}
+
+int lt_sunlock(int ret)
+{
+ pthread_mutex_unlock(&lt_lock);
+ return ret;
+}