From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 9 Jan 2010 08:33:13 +0300 From: anonymous To: 9fans@9fans.net Message-ID: <20100109053313.GA19304@machine> References: <20100108094014.GA16595@machine> <28ff9005991e4d1456712876624cc583@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28ff9005991e4d1456712876624cc583@gmx.de> Subject: Re: [9fans] libthread API Topicbox-Message-UUID: bb3f2dd6-ead5-11e9-9d60-3106f5b1d025 Thanks, now I understand. The main question was why threadcreate asks for function pointer and can't just leave me in my function like rfork. So it is because we should move local variables out of scope as they are no more valid cause we have a new completely clear stack. But when it is better to use rfork with shared memory and when libthread?