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

◆ operator=() [1/2]

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

Copy assignment operator.

Parameters
otherSoundRoutine to copy
Returns
Reference to this SoundRoutine

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

Definition at line 33 of file Routine.cpp.

34{
35 if (this != &other) {
36 if (m_handle) {
37 m_handle.destroy();
38 }
39
40 if (other.m_handle) {
41 m_handle = other.m_handle;
42 } else {
43 m_handle = nullptr;
44 }
45 }
46 return *this;
47}
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:460

References m_handle.