aboutsummaryrefslogtreecommitdiff
path: root/fastnn/threads/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'fastnn/threads/init.lua')
-rw-r--r--fastnn/threads/init.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/fastnn/threads/init.lua b/fastnn/threads/init.lua
new file mode 100644
index 0000000..6cd3679
--- /dev/null
+++ b/fastnn/threads/init.lua
@@ -0,0 +1,14 @@
+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