|
type ? create_event_manual_reset : 0 | state ? create_event_initial_set : 0, |
The bitwise-or operator has higher precedence than the ternary, so this line compiles as
type ? create_event_manual_reset : ( ( 0 | state ) ? create_event_initial_set : 0 )
Creating an initially-set manual-reset event is therefore not possible. What is probably meant is:
( type ? create_event_manual_reset : 0 ) | ( state ? create_event_initial_set : 0 )
thread/include/boost/thread/win32/thread_primitives.hpp
Line 105 in a645ef7
The bitwise-or operator has higher precedence than the ternary, so this line compiles as
Creating an initially-set manual-reset event is therefore not possible. What is probably meant is: