Mojo struct
EventFlags
struct EventFlags
Provides flags for creating events.
These flags can be combined using the bitwise OR operator (|, |=).
Implemented traits
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime members
blocking_sync
comptime blocking_sync = EventFlags(SIMD(1))
Allows event.synchronize() to block until the event has been recorded.
default
comptime default = EventFlags(SIMD(0))
Default event flags, with timing enabled.
disable_timing
comptime disable_timing = EventFlags(SIMD(2))
Removes timing overhead.
interprocess
comptime interprocess = EventFlags(SIMD(4))
Enable interprocess synchronization, currently unimplemented.
Methods
__init__
__init__(flags: UInt32) -> Self
Initializes a new EventFlags.
Args:
- flags (
UInt32): The flags to initialize the EventFlags with.
__or__
__or__(self, other: Self) -> Self
Returns the current flags combined with another flag.
Args:
- other (
Self): The flag to combine with the current flags.
Returns:
Self: A new EventFlags instance with the combined flags.
__ior__
__ior__(mut self, other: Self)
Combines the current flags with another flag in-place.
Args:
- other (
Self): The flag to combine with the current flags.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!