aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Melnichuk <mimir@newmail.ru>2014-06-18 16:22:21 +0500
committerAlexey Melnichuk <mimir@newmail.ru>2014-06-18 16:22:21 +0500
commit2653b5c00746d41c836d75cb2bd110e994f9e235 (patch)
tree7e24537871bdc9e99b5c4f12c5cb794c767d3853
parentf3755c76b33a5483e51087fff6587cf09f87f5af (diff)
downloadlua-llthreads2-2653b5c00746d41c836d75cb2bd110e994f9e235.tar.gz
lua-llthreads2-2653b5c00746d41c836d75cb2bd110e994f9e235.tar.bz2
lua-llthreads2-2653b5c00746d41c836d75cb2bd110e994f9e235.zip
Update README.md
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index b7d8010..58e78eb 100644
--- a/README.md
+++ b/README.md
@@ -54,7 +54,8 @@ local thread = require "llthreads".new[[
54 54
55-- We tell that we start attached thread but child Lua State shuld be close in child thread. 55-- We tell that we start attached thread but child Lua State shuld be close in child thread.
56-- If `thread` became garbage in main thread then finallizer calls thread:join() 56-- If `thread` became garbage in main thread then finallizer calls thread:join()
57-- and main thread may hungup. 57-- and main thread may hungup. But because of child state closes in child thread all objects
58-- in this state can be destroyed and we can prevent deadlock.
58thread:start(false, false) 59thread:start(false, false)
59 60
60-- We can call join. 61-- We can call join.