From 2653b5c00746d41c836d75cb2bd110e994f9e235 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Wed, 18 Jun 2014 16:22:21 +0500 Subject: Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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[[ -- We tell that we start attached thread but child Lua State shuld be close in child thread. -- If `thread` became garbage in main thread then finallizer calls thread:join() --- and main thread may hungup. +-- and main thread may hungup. But because of child state closes in child thread all objects +-- in this state can be destroyed and we can prevent deadlock. thread:start(false, false) -- We can call join. -- cgit v1.2.3-55-g6feb