From 91b24571b3e00324460fc45a9a80cda02b59e485 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Thu, 23 Mar 2017 10:56:26 +0300 Subject: Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 507bcd9..aa164f7 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,13 @@ lua-llthreads2 This is full dropin replacement for [llthreads](https://github.com/Neopallium/lua-llthreads) library. -##Incompatibility list with origin llthreads library +## Incompatibility list with origin llthreads library * does not support Lua 5.0 * does not support ffi interface (use Lua C API for LuaJIT) * returns nil instead of false on error * start method returns self instead of true on success -##Additional +## Additional * thread:join() method support zero timeout to check if thread alive (does not work on Windows with pthreads) * thread:join() method support arbitrary timeout on Windows threads * thread:alive() method return whether the thread is alive (does not work on Windows with pthreads) @@ -20,16 +20,16 @@ This is full dropin replacement for [llthreads](https://github.com/Neopallium/lu * 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) -##Thread start arguments +## Thread start arguments | `detached` | `joinable` | join returns | child state closes by | gc calls | detach on | |:----------:|:----------:|:------------:|:---------------------:|:--------:|:---------:| | false | false | `true` | child | join | `` | -| false(*) | true(*) | Lua values | parent | join | `` | -| true | false(*) | raise error | child | `` | start | +|   false(\*)| true(\*)  | Lua values   |         parent       | join \* | `` | +|   true     | false(\*) | raise error |         child         | `` |   start   | | true | true | `true` | child | detach | gc | -##Usage +## Usage ### Use custom logger In this example I use [lua-log](https://github.com/moteus/lua-log) library. -- cgit v1.2.3-55-g6feb