diff options
author | Alexey Melnichuk <alexeymelnichuck@gmail.com> | 2017-02-02 11:43:58 +0300 |
---|---|---|
committer | Alexey Melnichuk <alexeymelnichuck@gmail.com> | 2017-02-02 11:43:58 +0300 |
commit | e9582c8c2f07b36b376ea4ad847fc32dfd27a72c (patch) | |
tree | f02dc1b0aa487fde965f21d56f8af34d3b82b764 | |
parent | 3240832746eeb7623e6a30b29a8bc4bdcdb2f705 (diff) | |
parent | 6c94cc0344b372ccefd3ca3e9a1f512df1e2274f (diff) | |
download | lua-llthreads2-e9582c8c2f07b36b376ea4ad847fc32dfd27a72c.tar.gz lua-llthreads2-e9582c8c2f07b36b376ea4ad847fc32dfd27a72c.tar.bz2 lua-llthreads2-e9582c8c2f07b36b376ea4ad847fc32dfd27a72c.zip |
Merge branch 'master' of https://github.com/moteus/lua-llthreads2
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -60,7 +60,7 @@ thread:start(false, false) | |||
60 | 60 | ||
61 | -- We can call join. | 61 | -- We can call join. |
62 | -- Because of Lua state destroys in child thread we can not get | 62 | -- Because of Lua state destroys in child thread we can not get |
63 | -- returned Lua vaules so we just returns `true`. | 63 | -- returned Lua values so we just returns `true`. |
64 | thread:join() | 64 | thread:join() |
65 | ``` | 65 | ``` |
66 | 66 | ||
@@ -78,7 +78,7 @@ thread:start(true, true) | |||
78 | 78 | ||
79 | -- We can call join. | 79 | -- We can call join. |
80 | -- Because of Lua state destroys in child thread we can not get | 80 | -- Because of Lua state destroys in child thread we can not get |
81 | -- returned Lua vaules so we just returns `true`. | 81 | -- returned Lua values so we just returns `true`. |
82 | thread:join() | 82 | thread:join() |
83 | ``` | 83 | ``` |
84 | 84 | ||
@@ -111,7 +111,7 @@ local thread = require "llthreads2".new[[ | |||
111 | thread:start() | 111 | thread:start() |
112 | 112 | ||
113 | -- we can not use `thread:join(0)` because we can not call it twice | 113 | -- we can not use `thread:join(0)` because we can not call it twice |
114 | -- so all returned vaules will be lost | 114 | -- so all returned values will be lost |
115 | while thread:alive() do | 115 | while thread:alive() do |
116 | -- do some work | 116 | -- do some work |
117 | end | 117 | end |