On Thu, Feb 24, 2005 at 10:15:58AM -0500, Rich Salz wrote:
Can you generate a patch ?
Sure, attached. Untested. The code now looks similar to the beos code.
Hum, I can't test it, it didn't broke on Linux, I commited I hope
someone can give it a try on Windows,
thanks,
Daniel
--
thanks. try this patch.
/r$
--
Rich Salz Chief Security Architect
DataPower Technology http://www.datapower.com
XS40 XML Security Gateway http://www.datapower.com/products/xs40.html
*** threads.c.orig Thu Feb 24 10:06:35 2005
--- threads.c Thu Feb 24
That one does compile. Get a warning now:
..\threads.c(702) : warning C4020: 'InterlockedIncrement' : too many
actual parameters
Shouldn't it be:
if (InterlockedIncrement(run_once.control) == 1)
removed the second parameter and test == 1 (otherwise go into a nice
forever loop calling Sleep(0))