Mojo struct
EventFlags
@register_passable(trivial)
struct EventFlags
Provides flags for creating events.
These flags can be combined using the bitwise OR operator (|
, |=
).
Implemented traits
AnyType
,
Copyable
,
ExplicitlyCopyable
,
Movable
,
UnknownDestructibility
Aliases
__copyinit__is_trivial
alias __copyinit__is_trivial = True
__del__is_trivial
alias __del__is_trivial = True
__moveinit__is_trivial
alias __moveinit__is_trivial = True
blocking_sync
alias blocking_sync = EventFlags(1)
Allows event.synchronize()
to block until the event has been recorded.
default
alias default = EventFlags(0)
Default event flags, with timing enabled.
disable_timing
alias disable_timing = EventFlags(2)
Removes timing overhead.
interprocess
alias interprocess = EventFlags(4)
Enable interprocess synchronization, currently unimplemented.
Methods
__init__
__init__(flags: SIMD[uint32, 1]) -> Self
Initializes a new EventFlags.
Args:
- flags (
SIMD
): 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.
__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!