diff options
| -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. |
