aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Melnichuk <alexeymelnichuck@gmail.com>2017-02-02 11:43:58 +0300
committerAlexey Melnichuk <alexeymelnichuck@gmail.com>2017-02-02 11:43:58 +0300
commite9582c8c2f07b36b376ea4ad847fc32dfd27a72c (patch)
treef02dc1b0aa487fde965f21d56f8af34d3b82b764
parent3240832746eeb7623e6a30b29a8bc4bdcdb2f705 (diff)
parent6c94cc0344b372ccefd3ca3e9a1f512df1e2274f (diff)
downloadlua-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.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 2ec4cb2..6a514df 100644
--- a/README.md
+++ b/README.md
@@ -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`.
64thread:join() 64thread: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`.
82thread:join() 82thread:join()
83``` 83```
84 84
@@ -111,7 +111,7 @@ local thread = require "llthreads2".new[[
111thread:start() 111thread: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
115while thread:alive() do 115while thread:alive() do
116 -- do some work 116 -- do some work
117end 117end