[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is there's some information for use Lua in Multi-threaded C++Application?
- From: "Peter Loveday" <peter@...>
- Date: Tue, 12 Aug 2003 11:36:02 -0400
I'm not sure that executing code on different threads is supported in Lua;
(though it may be if you make sure never to execute code on both at once).
My application is extremely multi-threaded; while we do manage multiple Lua
contexts for different script purposes, it is also possible for them to be
used by other threads. The solution I used is to push scripting off on to a
separate thread, and have it accept messages to execute scripts or commands
from other threads.
Love, Light and Peace,
- Peter Loveday
Director of Development, eyeon Software
----- Original Message -----
From: "Phipps Xue" <jmxue@mtone.com.cn>
To: <lua@bazar2.conectiva.com.br>
Sent: Tuesday, August 12, 2003 8:45 AM
Subject: Is there's some information for use Lua in Multi-threaded
C++Application?
> I's there any information about developing a multi-threaded c++
> application, which will call lua script in each thread?
>
> My demo programm could dance very well in single thread but crashed when
> I copy the same code snippet in a programm has one main thread and one
> child thread.
>
> TIA
>
> Xue Jianmin, Phipps
>
> Mobile: 1350-183-1513
> E-mail: xuejm@sina.com
>
>