diff options
| author | moteus <mimir@newmail.ru> | 2013-12-30 12:58:48 +0400 |
|---|---|---|
| committer | moteus <mimir@newmail.ru> | 2013-12-30 12:58:48 +0400 |
| commit | 18464f368d90b0f8ce48cb5d45def6f9d87e3432 (patch) | |
| tree | 89d9c45aa5a25fe361b6ec4bd5495375664b0b81 /test/test_register_llthreads.lua | |
| parent | a087c2737441aad781be7e3d88775e688152ad4e (diff) | |
| download | lua-llthreads2-18464f368d90b0f8ce48cb5d45def6f9d87e3432.tar.gz lua-llthreads2-18464f368d90b0f8ce48cb5d45def6f9d87e3432.tar.bz2 lua-llthreads2-18464f368d90b0f8ce48cb5d45def6f9d87e3432.zip | |
Change. does not register llthread loader.
This is because of better load dynamic library from child thread to
prevent unload dynamic library if parent Lua state closes.
Diffstat (limited to 'test/test_register_llthreads.lua')
| -rw-r--r-- | test/test_register_llthreads.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_register_llthreads.lua b/test/test_register_llthreads.lua index f02bf86..5b234a9 100644 --- a/test/test_register_llthreads.lua +++ b/test/test_register_llthreads.lua | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | -- Test if you build module with | ||
| 2 | -- LLTHREAD_REGISTER_THREAD_LIBRARY | ||
| 3 | |||
| 1 | local llthreads = require "llthreads" | 4 | local llthreads = require "llthreads" |
| 2 | local thread = llthreads.new([[ | 5 | local thread = llthreads.new([[ |
| 3 | if not package.preload.llthreads then | 6 | if not package.preload.llthreads then |
