diff options
author | Alexey Melnichuk <mimir@newmail.ru> | 2014-06-18 16:22:21 +0500 |
---|---|---|
committer | Alexey Melnichuk <mimir@newmail.ru> | 2014-06-18 16:22:21 +0500 |
commit | 2653b5c00746d41c836d75cb2bd110e994f9e235 (patch) | |
tree | 7e24537871bdc9e99b5c4f12c5cb794c767d3853 | |
parent | f3755c76b33a5483e51087fff6587cf09f87f5af (diff) | |
download | lua-llthreads2-2653b5c00746d41c836d75cb2bd110e994f9e235.tar.gz lua-llthreads2-2653b5c00746d41c836d75cb2bd110e994f9e235.tar.bz2 lua-llthreads2-2653b5c00746d41c836d75cb2bd110e994f9e235.zip |
Update README.md
-rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. | ||
58 | thread:start(false, false) | 59 | thread:start(false, false) |
59 | 60 | ||
60 | -- We can call join. | 61 | -- We can call join. |