lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

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" <>
To: <>
Sent: Tuesday, August 12, 2003 8:45 AM
Subject: Is there's some information for use Lua in Multi-threaded

> 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.
> Xue Jianmin, Phipps
> Mobile: 1350-183-1513
> E-mail: