Skip to content

Logic bug in detail::win32::create_event() #279

@chrullrich

Description

@chrullrich

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 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions