diff --git a/LICENSE b/LICENSE index 54690c7..b292229 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2013-2015 Alexey Melnichuk +Copyright (c) 2013-2016 Alexey Melnichuk Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/dist.info b/dist.info index 16b6fd1..ab6068a 100644 --- a/dist.info +++ b/dist.info @@ -1,5 +1,5 @@ name = "lua-llthreads2" -version = "0.1.3" +version = "0.1.4" desc = "A simple Lua wrapper for pthreads & WIN32 threads." author = "Alexey Melnichuk" diff --git a/rockspecs/lua-llthreads2-0.1.4-1.rockspec b/rockspecs/lua-llthreads2-0.1.4-1.rockspec new file mode 100644 index 0000000..6996f34 --- /dev/null +++ b/rockspecs/lua-llthreads2-0.1.4-1.rockspec @@ -0,0 +1,45 @@ +package = "lua-llthreads2" +version = "0.1.4-1" +source = { + url = "https://github.com/moteus/lua-llthreads2/archive/v0.1.4.zip", + dir = "lua-llthreads2-0.1.4", +} +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", + } +} \ No newline at end of file diff --git a/rockspecs/lua-llthreads2-compat-0.1.4-1.rockspec b/rockspecs/lua-llthreads2-compat-0.1.4-1.rockspec new file mode 100644 index 0000000..f475184 --- /dev/null +++ b/rockspecs/lua-llthreads2-compat-0.1.4-1.rockspec @@ -0,0 +1,45 @@ +package = "lua-llthreads2-compat" +version = "0.1.4-1" +source = { + url = "https://github.com/moteus/lua-llthreads2/archive/v0.1.4.zip", + dir = "lua-llthreads2-0.1.4", +} +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.4", +} +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" }, + }, + ["llthreads.ex"] = "src/lua/llthreads2/ex.lua", + } +} \ No newline at end of file diff --git a/src/llthread.c b/src/llthread.c index c2831eb..21d7934 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 4 -#define LLTHREAD_VERSION_COMMENT "dev" +// #define LLTHREAD_VERSION_COMMENT "dev" #ifndef USE_PTHREAD # include