OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::detail::LifecycleDispatchGuard Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/LifecycleEvents.hpp>

Collaboration diagram for Slic3r::detail::LifecycleDispatchGuard:

Public Member Functions

 LifecycleDispatchGuard (LifecycleHookState &state)
 ~LifecycleDispatchGuard ()
 LifecycleDispatchGuard (const LifecycleDispatchGuard &)=delete
LifecycleDispatchGuard & operator= (const LifecycleDispatchGuard &)=delete

Private Attributes

LifecycleHookState & m_state

Detailed Description

Constructor & Destructor Documentation

◆ LifecycleDispatchGuard() [1/2]

Slic3r::detail::LifecycleDispatchGuard::LifecycleDispatchGuard ( LifecycleHookState & state)
inlineexplicit
194: m_state(state) {}
LifecycleHookState & m_state
Definition LifecycleEvents.hpp:208

References m_state.

Referenced by LifecycleDispatchGuard(), and operator=().

Here is the caller graph for this function:

◆ ~LifecycleDispatchGuard()

Slic3r::detail::LifecycleDispatchGuard::~LifecycleDispatchGuard ( )
inline
197 {
198 std::lock_guard<std::mutex> lock(m_state.mutex);
199 --m_state.active_dispatches;
200 if (m_state.active_dispatches == 0)
201 m_state.cv.notify_all();
202 }
@ lock
Definition GLGizmoEmboss.cpp:209

References m_state.

◆ LifecycleDispatchGuard() [2/2]

Slic3r::detail::LifecycleDispatchGuard::LifecycleDispatchGuard ( const LifecycleDispatchGuard & )
delete

References LifecycleDispatchGuard().

Here is the call graph for this function:

Member Function Documentation

◆ operator=()

LifecycleDispatchGuard & Slic3r::detail::LifecycleDispatchGuard::operator= ( const LifecycleDispatchGuard & )
delete

References LifecycleDispatchGuard().

Here is the call graph for this function:

Member Data Documentation

◆ m_state

LifecycleHookState& Slic3r::detail::LifecycleDispatchGuard::m_state
private

The documentation for this class was generated from the following file: