lua-users home
lua-l archive

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


Mike,

Doing what you suggested and with a COCO_NEW like
below, I now have plutos thread resume test passing.

#define COCO_NEW(OL, NL, cstacksize, mainfunc) \
{ void *cur=GetCurrentFiber(); if (cur==NULL ||
cur==(void *)0x1e00) ConvertThreadToFiber(NULL);}\
if
((L2COCO(NL)->fib=CreateFiber(cstacksize,mainfunc,NL))==
NULL)luaD_throw(OL, LUA_ERRMEM);

Now the only test failing is "Open upvalues" but TBH I
don't really need that feature.

Thanks for the tips

Joe

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com