diff options
| -rw-r--r-- | rockspecs/ lua-llthreads2-0.1.1-1.rockspec | 44 | ||||
| -rw-r--r-- | rockspecs/lua-llthreads2-compat-0.1.1-1.rockspec | 44 |
2 files changed, 88 insertions, 0 deletions
diff --git a/rockspecs/ lua-llthreads2-0.1.1-1.rockspec b/rockspecs/ lua-llthreads2-0.1.1-1.rockspec new file mode 100644 index 0000000..af74686 --- /dev/null +++ b/rockspecs/ lua-llthreads2-0.1.1-1.rockspec | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | package = "lua-llthreads2" | ||
| 2 | version = "0.1.1-1" | ||
| 3 | source = { | ||
| 4 | url = "https://github.com/moteus/lua-llthreads2/archive/v0.1.1.zip", | ||
| 5 | dir = "lua-llthreads2-0.1.1", | ||
| 6 | } | ||
| 7 | description = { | ||
| 8 | summary = "Low-Level threads for Lua", | ||
| 9 | homepage = "http://github.com/moteus/lua-llthreads2", | ||
| 10 | license = "MIT/X11", | ||
| 11 | detailed = [[ | ||
| 12 | This is drop-in replacement for `lua-llthread` module but the module called `llthreads2`. | ||
| 13 | In additional module supports: thread join with zero timeout; logging thread errors with | ||
| 14 | custom logger; run detached joinable threads; pass cfunctions as argument to child thread. | ||
| 15 | ]], | ||
| 16 | } | ||
| 17 | dependencies = { | ||
| 18 | "lua >= 5.1, < 5.3", | ||
| 19 | } | ||
| 20 | build = { | ||
| 21 | type = "builtin", | ||
| 22 | platforms = { | ||
| 23 | unix = { | ||
| 24 | modules = { | ||
| 25 | llthreads2 = { | ||
| 26 | libraries = {"pthread"}, | ||
| 27 | } | ||
| 28 | } | ||
| 29 | }, | ||
| 30 | windows = { | ||
| 31 | modules = { | ||
| 32 | llthreads2 = { | ||
| 33 | libraries = {"kernel32"}, | ||
| 34 | } | ||
| 35 | } | ||
| 36 | } | ||
| 37 | }, | ||
| 38 | modules = { | ||
| 39 | llthreads2 = { | ||
| 40 | sources = { "src/l52util.c", "src/llthread.c" }, | ||
| 41 | defines = { "LLTHREAD_MODULE_NAME=llthreads2" }, | ||
| 42 | } | ||
| 43 | } | ||
| 44 | } \ No newline at end of file | ||
diff --git a/rockspecs/lua-llthreads2-compat-0.1.1-1.rockspec b/rockspecs/lua-llthreads2-compat-0.1.1-1.rockspec new file mode 100644 index 0000000..75ef40e --- /dev/null +++ b/rockspecs/lua-llthreads2-compat-0.1.1-1.rockspec | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | package = "lua-llthreads2-compat" | ||
| 2 | version = "0.1.1-1" | ||
| 3 | source = { | ||
| 4 | url = "https://github.com/moteus/lua-llthreads2/archive/v0.1.1.zip", | ||
| 5 | dir = "lua-llthreads2-0.1.1", | ||
| 6 | } | ||
| 7 | description = { | ||
| 8 | summary = "Low-Level threads for Lua", | ||
| 9 | homepage = "http://github.com/moteus/lua-llthreads2", | ||
| 10 | license = "MIT/X11", | ||
| 11 | detailed = [[ | ||
| 12 | This is drop-in replacement for `lua-llthread` module. | ||
| 13 | In additional module supports: thread join with zero timeout; logging thread errors with | ||
| 14 | custom logger; run detached joinable threads; pass cfunctions as argument to child thread. | ||
| 15 | ]], | ||
| 16 | } | ||
| 17 | dependencies = { | ||
| 18 | "lua >= 5.1, < 5.3", | ||
| 19 | } | ||
| 20 | build = { | ||
| 21 | type = "builtin", | ||
| 22 | platforms = { | ||
| 23 | unix = { | ||
| 24 | modules = { | ||
| 25 | llthreads = { | ||
| 26 | libraries = {"pthread"}, | ||
| 27 | } | ||
| 28 | } | ||
| 29 | }, | ||
| 30 | windows = { | ||
| 31 | modules = { | ||
| 32 | llthreads = { | ||
| 33 | libraries = {"kernel32"}, | ||
| 34 | } | ||
| 35 | } | ||
| 36 | } | ||
| 37 | }, | ||
| 38 | modules = { | ||
| 39 | llthreads = { | ||
| 40 | sources = { "src/l52util.c", "src/llthread.c" }, | ||
| 41 | defines = { "LLTHREAD_MODULE_NAME=llthreads" }, | ||
| 42 | } | ||
| 43 | } | ||
| 44 | } \ No newline at end of file | ||
