aboutsummaryrefslogtreecommitdiff
path: root/fastnn/threads/init.lua
blob: 6cd3679b50cb8cb0b44d9ca648f04425e21be653 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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