lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

Reply
Thread Tools Display Modes
  #1  
Unread 05-21-2012, 06:33 PM
K1R4D3L K1R4D3L is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2012
Posts: 34
Lua and threading

Seeing Niwashi's question about table deletes got me thinking about a different problem...one that's a bit harder to test, so I'll see if anyone knows before I build some elaborate test case.

Seeing as LotRO's Lua implementation supports asynchronous event handlers, it raises the possibility that we might have threading issues - where the event handler for one event is, say manipulating a table, while another event handler gets called and attempt to manipulate the same table. How is thread-safety implemented in Lua, or LotRO's Lua? Are all event handler calls executed to completion before the next one can start, in a single threaded FIFO queue?
Reply With Quote
  #2  
Unread 05-21-2012, 07:56 PM
moebius92 moebius92 is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Posts: 51
I'm pretty sure each event handler runs until they return. I've locked the client into an infinite loop more than once.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:36 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui