forked from boostorg/beast
Add RecursiveMutex, UnlockGuard, TryLockGuard
This commit is contained in:
1 parent
5831a53697
commit
01fd05cb4b
16 files changed
+432
-10
No files matched your search
@@ -20,12 +20,10 @@
|
||||
#ifndef BEAST_THREAD_SHAREDDATA_H_INCLUDED
|
||||
#define BEAST_THREAD_SHAREDDATA_H_INCLUDED
|
||||
|
||||
#include "RecursiveMutex.h"
|
||||
#include "SharedMutexAdapter.h"
|
||||
|
||||
namespace beast
|
||||
{
|
||||
|
||||
class CriticalSection;
|
||||
namespace beast {
|
||||
|
||||
/** Structured, multi-threaded access to a shared state.
|
||||
|
||||
@@ -111,7 +109,7 @@ class CriticalSection;
|
||||
@tparam SharedMutexType The type of shared mutex to use.
|
||||
*/
|
||||
template <typename Value, class SharedMutexType =
|
||||
SharedMutexAdapter <CriticalSection> >
|
||||
SharedMutexAdapter <RecursiveMutex> >
|
||||
class SharedData : public Uncopyable
|
||||
{
|
||||
private:
|
||||
|
||||
Reference in new issue
Block a user