[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Threads HOWTO?
- From: Asko Kauppi <asko.kauppi@...>
- Date: Thu, 22 Jul 2004 10:39:08 +0300
Hmm.. Why wouldn't you just create one more thread :) for the Lua
system altogether, then message pass from the others (you can feed in
whole Lua code chunks if you want). This would be a nice 'bolt in' if
the messaging overhead is not too bad for you.
Of course, this would incur that the Lua chunks won't be simultaneously
executed. But if they're small, but need the common state, this could
be a solution.
Just an idea,
-ak
22.7.2004 kello 06:57, Johann Hibschman kirjoitti:
I'm looking for a way to execute some lua code safely from inside
some random thread, when I don't have the luxury of setting up a
special thread-specific state at thread-creation time. That's why I
was looking at the idea of creating lua threads each time a chunk of
code is executed.