Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Stroika::Foundation::Execution::AbortableMutex Class Reference

#include <AbortableMutex.h>

Public Member Functions

nonvirtual void lock ()
 

Detailed Description

This is equivalent to std::mutex, except that when a thread is blocked in a lock() call it can still be interrupted by Thread::Abort ().

This is not generally necessary for quick mutexes, but for any mutex use where you could block/lock for an extended time, it makes sense to use this instead. This is completely compatible with std::mutex otherwise, and can be used with std::lock_guard<> etc.

Definition at line 61 of file AbortableMutex.h.

Member Function Documentation

◆ lock()

void AbortableMutex::lock ( )
Note
Cancelation Point

Definition at line 19 of file AbortableMutex.cpp.


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