From Csaba Halasz, "IIRC the C++ standard says members will be initialized in declaration

order, and not in the order they are listed in the constructor. To
avoid possible trouble, gcc warns about this. Attached modification
fixes the initializer order to silence this warning."
This commit is contained in:
Robert Osfield 2009-03-23 16:28:48 +00:00
parent 33cdeec757
commit e89deb0f79

View File

@ -44,9 +44,9 @@ public:
Win32ConditionPrivateData () Win32ConditionPrivateData ()
:waiters_(0), :waiters_(0),
was_broadcast_(0),
sema_(CreateSemaphore(NULL,0,0x7fffffff,NULL)), sema_(CreateSemaphore(NULL,0,0x7fffffff,NULL)),
waiters_done_(CreateEvent(NULL,FALSE,FALSE,NULL)) waiters_done_(CreateEvent(NULL,FALSE,FALSE,NULL)),
was_broadcast_(0)
{ {
} }