lua-users home
lua-l archive

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


Javier Guerra Giraldez escribió:

was that a bug in the pthreads library, or luaTask?  could that affect
luathreads too?  i had some erratic problems with luathreads, and
couldn't isolate them, but a leak on pthreads could explain them


Hi Javier:

It was a LuaTask bug, syncos.c was creating a new thread with default attributes, but PTHREAD_CREATE_DETACHED is not the default behavior. :-( Threads non detached expects somebody to "join" them, and this never happened causing thread resources to stay unfreed. I haven't detected any leak caused by the pthreads libraries. (yet...) ;-)

--DQ