-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlua-llthreads2-scm-0.rockspec
45 lines (45 loc) · 1.11 KB
/
lua-llthreads2-scm-0.rockspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package = "lua-llthreads2"
version = "scm-0"
source = {
url = "https://github.com/moteus/lua-llthreads2/archive/master.zip",
dir = "lua-llthreads2-master",
}
description = {
summary = "Low-Level threads for Lua",
homepage = "http://github.com/moteus/lua-llthreads2",
license = "MIT/X11",
detailed = [[
This is drop-in replacement for `lua-llthread` module but the module called `llthreads2`.
In additional module supports: thread join with zero timeout; logging thread errors with
custom logger; run detached joinable threads; pass cfunctions as argument to child thread.
]],
}
dependencies = {
"lua >= 5.1, < 5.4",
}
build = {
type = "builtin",
platforms = {
unix = {
modules = {
llthreads2 = {
libraries = {"pthread"},
}
}
},
windows = {
modules = {
llthreads2 = {
libraries = {"kernel32"},
}
}
}
},
modules = {
llthreads2 = {
sources = { "src/l52util.c", "src/llthread.c" },
defines = { "LLTHREAD_MODULE_NAME=llthreads2" },
},
["llthreads2.ex"] = "src/lua/llthreads2/ex.lua",
}
}