aboutsummaryrefslogtreecommitdiff
path: root/fastnn/threads/threads.lua
diff options
context:
space:
mode:
Diffstat (limited to 'fastnn/threads/threads.lua')
-rw-r--r--fastnn/threads/threads.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/fastnn/threads/threads.lua b/fastnn/threads/threads.lua
new file mode 100644
index 0000000..2db7d51
--- /dev/null
+++ b/fastnn/threads/threads.lua
@@ -0,0 +1,14 @@
+local threads = {}
+
+local C = require 'libthreads'
+
+threads.Thread = C.Thread
+threads.Mutex = C.Mutex
+threads.Condition = C.Condition
+threads.Semaphore = C.Semaphore
+--threads.Threads = require 'threads.threads'
+
+-- only for backward compatibility (boo)
+-- setmetatable(threads, getmetatable(threads.Threads))
+
+-- return threads