Welcome to mirror list, hosted at ThFree Co, Russian Federation.

init.lua - github.com/torch/threads-ffi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a76fec3bea87eeb88e1f2acb356ae962cd0a629a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
local threads = {}

local C = require 'libthreads'

threads.Thread = C.Thread
threads.Mutex = C.Mutex
threads.Condition = C.Condition
threads.Threads = require 'threads.threads'
threads.safe = require 'threads.safe'

-- only for backward compatibility (boo)
setmetatable(threads, getmetatable(threads.Threads))

return threads