For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
EventFlags
struct EventFlags
Provides flags for creating events.
These flags can be combined using the bitwise OR operator (|, |=).
Implemented traitsβ
AnyType,
Copyable,
Deinitable,
ImplicitlyCopyable,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
blocking_syncβ
comptime blocking_sync = EventFlags(UInt32(1))
Allows event.synchronize() to block until the event has been recorded.
defaultβ
comptime default = EventFlags(UInt32(0))
Default event flags, with timing enabled.
disable_timingβ
comptime disable_timing = EventFlags(UInt32(2))
Removes timing overhead.
interprocessβ
comptime interprocess = EventFlags(UInt32(4))
Enable interprocess synchronization, currently unimplemented.
Methodsβ
__init__β
def __init__(flags: UInt32) -> Self
Initializes a new EventFlags.
Args:
- βflags (
UInt32): The flags to initialize the EventFlags with.
__or__β
def __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__β
def __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.