aboutsummaryrefslogtreecommitdiff
path: root/fastnn/threads/test/test-threads.lua
blob: e49a3812de2a9a0b3fe789ae4050283214b0a13b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)