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

-- 
Anthony Williams
Software Developer
Just Software Solutions Ltd
http://www.justsoftwaresolutions.co.uk

Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk