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: 30ca9aeef23d43e996e6aed82ee8a59e3fff55da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
local threads = {}

local C = require 'libthreads'

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

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

return threads