[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Segmentation fault: Lua and pthread
- From: Marc Vollmer <marc.vollmer@...>
- Date: Sat, 20 Jun 2009 14:21:18 +0200
Hello Rob,
ok, now I have understood that lua threads and OS threads are different
things. But how I can use the LuaLanes in my C program? I find no
example of the API...
Marc
Am Freitag, den 19.06.2009, 13:53 -0500 schrieb Rob Hoelz:
> Hello Marc,
>
> Lua threads aren't related to OS threads at all - they're just
> coroutines. Please read the chapter on coroutines (chapter 9 in PIL
> v1), and check out LuaLanes or one of the other fine threading
> libraries for all your Lua multithreading needs. In short, it's
> segfaulting because Lua and OS threads don't mix =(.
>
> -Rob Hoelz
>
> On Fri, 19 Jun 2009 20:44:41 +0200
> Marc Vollmer <marc.vollmer@googlemail.com> wrote: