IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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.