[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Threads and lua_resume
- From: Jack Christensen <jack@...>
- Date: Mon, 23 Feb 2004 22:00:26 -0600
Can I treat my main lua_state as a coroutine by using lua_resume and
lua_yield? The only mention of them in the manual is Section 3.20 -
Threads. It seems to indicate that you must create a thread to use
these. However, I don't see the reason behind this, and preliminary
testing indicates it works fine on the main lua_state.
Is this going to bite me later on?
Jack