aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.