lua-users home
lua-l archive

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


oh i assumed this was the problem after i posted this :) ok thanks.

On Dec 20, 2007 8:03 AM, Vyacheslav Egorov <mraleph@gorodok.net> wrote:
Joseph Saadé wrote:
> can't we create many threads at once? or am i doing something wrong?
lua_newthread pushes newly created thread on the stack, but it does not
check (as all other API functions by default) that stack is large
enough, so you must ensure that manually by calling lua_checkstack.
For more details see section 3.2 - Stack Size of reference manual
(http://www.lua.org/manual/5.1/manual.html#3.2)

--
e.v.e