MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ operator=() [1/2]

Event & MayaFlux::Vruta::Event::operator= ( const Event other)

Copy assignment operator.

Parameters
otherEvent to copy
Returns
Reference to this Event

Assigns this Event to share ownership of the same underlying coroutine as the other Event.

Definition at line 26 of file Event.cpp.

27{
28 if (this != &other) {
29 if (m_handle) {
30 m_handle.destroy();
31 }
32
33 if (other.m_handle) {
34 m_handle = other.m_handle;
35 } else {
36 m_handle = nullptr;
37 }
38 }
39 return *this;
40}
std::coroutine_handle< promise_type > m_handle
Definition Event.hpp:225

References m_handle.