From aa247887dcf9ad0375723ce91c39243df2baf547 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Thu, 9 Jan 2014 13:32:48 +0400 Subject: Add. rockspecs for version 0.1.0 --- README.md | 2 +- rockspecs/lua-llthreads2-0.1.0-1.rockspec | 44 ++++++++++++++++++++++++ rockspecs/lua-llthreads2-compat-0.1.0-1.rockspec | 44 ++++++++++++++++++++++++ src/llthread.c | 2 +- 4 files changed, 90 insertions(+), 2 deletions(-) create mode 100644 rockspecs/lua-llthreads2-0.1.0-1.rockspec create mode 100644 rockspecs/lua-llthreads2-compat-0.1.0-1.rockspec diff --git a/README.md b/README.md index f84fdb2..ba38ebd 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This is full dropin replacement for [llthreads](https://github.com/Neopallium/lu * thread:join() method support arbitrary timeout on Windows threads * set_logger function allow logging errors (crash Lua VM) in current llthread's threads * thread:start() has additional parameter which control in which thread child Lua VM will be destroyed -* allow pass cfunctions to child thread (e.g. to initialize Lua state) (experemental) +* allow pass cfunctions to child thread (e.g. to initialize Lua state) ##Usage diff --git a/rockspecs/lua-llthreads2-0.1.0-1.rockspec b/rockspecs/lua-llthreads2-0.1.0-1.rockspec new file mode 100644 index 0000000..9116d6a --- /dev/null +++ b/rockspecs/lua-llthreads2-0.1.0-1.rockspec @@ -0,0 +1,44 @@ +package = "lua-llthreads2" +version = "0.1.0-1" +source = { + url = "https://github.com/moteus/lua-llthreads2/archive/v0.1.0.zip", + dir = "lua-llthreads2-0.1.0", +} +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.3", +} +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" }, + } + } +} \ No newline at end of file diff --git a/rockspecs/lua-llthreads2-compat-0.1.0-1.rockspec b/rockspecs/lua-llthreads2-compat-0.1.0-1.rockspec new file mode 100644 index 0000000..0c058ea --- /dev/null +++ b/rockspecs/lua-llthreads2-compat-0.1.0-1.rockspec @@ -0,0 +1,44 @@ +package = "lua-llthreads2-compat" +version = "0.1.0-1" +source = { + url = "https://github.com/moteus/lua-llthreads2/archive/v0.1.0.zip", + dir = "lua-llthreads2-0.1.0", +} +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. + 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.3", +} +build = { + type = "builtin", + platforms = { + unix = { + modules = { + llthreads = { + libraries = {"pthread"}, + } + } + }, + windows = { + modules = { + llthreads = { + libraries = {"kernel32"}, + } + } + } + }, + modules = { + llthreads = { + sources = { "src/l52util.c", "src/llthread.c" }, + defines = { "LLTHREAD_MODULE_NAME=llthreads" }, + } + } +} \ No newline at end of file diff --git a/src/llthread.c b/src/llthread.c index 27253e5..ac485e3 100644 --- a/src/llthread.c +++ b/src/llthread.c @@ -5,7 +5,7 @@ #define LLTHREAD_VERSION_MAJOR 0 #define LLTHREAD_VERSION_MINOR 1 #define LLTHREAD_VERSION_PATCH 0 -#define LLTHREAD_VERSION_COMMENT "dev" +#define LLTHREAD_VERSION_COMMENT "" #ifndef USE_PTHREAD # include -- cgit v1.2.3-55-g6feb