9 #include <tasking/Event_mthread.h>
35 std::shared_ptr<mel::tasking::Process> mOwner;
36 std::atomic<int> mCount;
55 std::shared_ptr<::mel::tasking::Process> mOwner;
63 virtual ~_WrapperBase() {}
67 template <
bool ismth>
class _Wrapper :
public _WrapperBase
70 _Wrapper( CriticalSection_mthread<ismth>& cs ) : mCS( cs )
74 ~_Wrapper() { mCS.leave(); }
77 CriticalSection_mthread<ismth>& mCS;
88 : mWrapper( new _private::_Wrapper<ismth>( cs ) )
94 std::unique_ptr<_private::_WrapperBase> mWrapper;
A critical section for synchronizing microthreads (AKA Process)
Definition: CriticalSection_mthread.h:21
class similar to Event Class (which is for thread synchronization) but for Process (with Microthread ...
Definition: Event_mthread.h:167
Definition: CriticalSection_mthread.h:83
Lock_mthread(CriticalSection_mthread< ismth > &cs)
enter critical section.
Definition: CriticalSection_mthread.h:87
Definition: Callback_Impl.h:11