Boost logo

Threads-Devel :

From: Anthony Williams (anthony_at_[hidden])
Date: 2006-09-22 06:45:08

Roland Schwarz <roland.schwarz_at_[hidden]> writes:

> could you please have a look at the following issue?
> boost\thread\win32\condition.hpp(106) : warning C4800: 'long' : forcing
> value to bool 'true' or 'false' (performance warning)

The return from do_wait was returning a long, but the function has a bool
return type. I've added a "!=0" check, along with some other fixes (it was
leaking thread handles, and there was a race condition in notify_all)


Anthony Williams
Software Developer
Just Software Solutions Ltd

Threads-Devel list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at