diff options
| author | moteus <mimir@newmail.ru> | 2013-12-31 11:05:54 +0400 |
|---|---|---|
| committer | moteus <mimir@newmail.ru> | 2013-12-31 11:19:39 +0400 |
| commit | 1de7313ade8b0a6f6e3dc395eed5dd65c44a7829 (patch) | |
| tree | 6ab9998a0c35c023c311a05e2eca449b99091037 /rockspecs | |
| parent | 24a0d330a1d7c34269ce987999e221e99171b35c (diff) | |
| download | lua-llthreads2-1de7313ade8b0a6f6e3dc395eed5dd65c44a7829.tar.gz lua-llthreads2-1de7313ade8b0a6f6e3dc395eed5dd65c44a7829.tar.bz2 lua-llthreads2-1de7313ade8b0a6f6e3dc395eed5dd65c44a7829.zip | |
Change. Implement 2 rockspecs llthreads2 and llthreads2-compat.
Diffstat (limited to 'rockspecs')
| -rw-r--r-- | rockspecs/lua-llthreads2-compat-scm-0.rockspec | 44 | ||||
| -rw-r--r-- | rockspecs/lua-llthreads2-scm-0.rockspec | 8 |
2 files changed, 51 insertions, 1 deletions
diff --git a/rockspecs/lua-llthreads2-compat-scm-0.rockspec b/rockspecs/lua-llthreads2-compat-scm-0.rockspec new file mode 100644 index 0000000..ac81a15 --- /dev/null +++ b/rockspecs/lua-llthreads2-compat-scm-0.rockspec | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | package = "lua-llthreads2-compat" | ||
| 2 | version = "scm-0" | ||
| 3 | source = { | ||
| 4 | url = "https://github.com/moteus/lua-llthreads2/archive/master.zip", | ||
| 5 | dir = "lua-llthreads2-master", | ||
| 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 | ||
diff --git a/rockspecs/lua-llthreads2-scm-0.rockspec b/rockspecs/lua-llthreads2-scm-0.rockspec index e543dc3..9810118 100644 --- a/rockspecs/lua-llthreads2-scm-0.rockspec +++ b/rockspecs/lua-llthreads2-scm-0.rockspec | |||
| @@ -8,6 +8,11 @@ description = { | |||
| 8 | summary = "Low-Level threads for Lua", | 8 | summary = "Low-Level threads for Lua", |
| 9 | homepage = "http://github.com/moteus/lua-llthreads2", | 9 | homepage = "http://github.com/moteus/lua-llthreads2", |
| 10 | license = "MIT/X11", | 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 | ]], | ||
| 11 | } | 16 | } |
| 12 | dependencies = { | 17 | dependencies = { |
| 13 | "lua >= 5.1, < 5.3", | 18 | "lua >= 5.1, < 5.3", |
| @@ -31,8 +36,9 @@ build = { | |||
| 31 | } | 36 | } |
| 32 | }, | 37 | }, |
| 33 | modules = { | 38 | modules = { |
| 34 | llthreads = { | 39 | llthreads2 = { |
| 35 | sources = { "src/l52util.c", "src/llthread.c" }, | 40 | sources = { "src/l52util.c", "src/llthread.c" }, |
| 41 | defines = { "LLTHREAD_MODULE_NAME=llthreads2" }, | ||
| 36 | } | 42 | } |
| 37 | } | 43 | } |
| 38 | } \ No newline at end of file | 44 | } \ No newline at end of file |
