aboutsummaryrefslogtreecommitdiff
path: root/fastnn/threads/test/test-threads.lua
diff options
context:
space:
mode:
Diffstat (limited to 'fastnn/threads/test/test-threads.lua')
-rw-r--r--fastnn/threads/test/test-threads.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/fastnn/threads/test/test-threads.lua b/fastnn/threads/test/test-threads.lua
new file mode 100644
index 0000000..e49a381
--- /dev/null
+++ b/fastnn/threads/test/test-threads.lua
@@ -0,0 +1,20 @@
+local clib = require 'libthreads'
+
+
+nthread = 1
+
+str='ad;alkfakd;af'
+code = [[ function func(str) print(str) end; print(str);]]
+print(code)
+
+--thread = clib.Thread(code)
+
+
+--thread:free()
+
+
+require 'threads'
+
+tt = threads.Thread(code)
+
+