OmniSciDB  cde582ebc3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavyai::DistributedSharedMutex Class Referencefinal

#include <heavyai_locks.h>

+ Inheritance diagram for heavyai::DistributedSharedMutex:
+ Collaboration diagram for heavyai::DistributedSharedMutex:

Classes

struct  Callbacks
 

Public Member Functions

 DistributedSharedMutex (std::filesystem::path lockfilename, std::function< void(size_t)> reload_cache_callback={})
 
 DistributedSharedMutex (std::filesystem::path lockfilename, Callbacks callbacks)
 
 ~DistributedSharedMutex ()
 
virtual void lock ()
 
virtual bool try_lock ()
 
virtual void unlock ()
 
virtual void lock_shared ()
 
virtual bool try_lock_shared ()
 
virtual void unlock_shared ()
 
virtual void convert_lock ()
 
virtual bool try_convert_lock ()
 
virtual void convert_lock_shared ()
 
virtual bool try_convert_lock_shared ()
 
- Public Member Functions inherited from heavyai::SharedMutexInterface
virtual ~SharedMutexInterface ()
 
- Public Member Functions inherited from heavyai::MutexInterface
virtual ~MutexInterface ()
 

Detailed Description

Definition at line 49 of file heavyai_locks.h.

Constructor & Destructor Documentation

heavyai::DistributedSharedMutex::DistributedSharedMutex ( std::filesystem::path  lockfilename,
std::function< void(size_t)>  reload_cache_callback = {} 
)
inline

Definition at line 59 of file heavyai_locks.h.

60  {}) {}
heavyai::DistributedSharedMutex::DistributedSharedMutex ( std::filesystem::path  lockfilename,
Callbacks  callbacks 
)
inline

Definition at line 62 of file heavyai_locks.h.

62 {}
heavyai::DistributedSharedMutex::~DistributedSharedMutex ( )
inline

Definition at line 64 of file heavyai_locks.h.

64 {}

Member Function Documentation

virtual void heavyai::DistributedSharedMutex::convert_lock ( )
inlinevirtual

Definition at line 72 of file heavyai_locks.h.

72 {}
virtual void heavyai::DistributedSharedMutex::convert_lock_shared ( )
inlinevirtual

Definition at line 74 of file heavyai_locks.h.

74 {}
virtual void heavyai::DistributedSharedMutex::lock ( )
inlinevirtual

Implements heavyai::MutexInterface.

Definition at line 66 of file heavyai_locks.h.

Referenced by legacylockmgr::WrapperType< MutexType >::lock().

66 {}

+ Here is the caller graph for this function:

virtual void heavyai::DistributedSharedMutex::lock_shared ( )
inlinevirtual

Implements heavyai::SharedMutexInterface.

Definition at line 69 of file heavyai_locks.h.

Referenced by legacylockmgr::WrapperType< MutexType >::lock_shared().

69 {}

+ Here is the caller graph for this function:

virtual bool heavyai::DistributedSharedMutex::try_convert_lock ( )
inlinevirtual

Definition at line 73 of file heavyai_locks.h.

73 { return true; }
virtual bool heavyai::DistributedSharedMutex::try_convert_lock_shared ( )
inlinevirtual

Definition at line 75 of file heavyai_locks.h.

75 { return true; }
virtual bool heavyai::DistributedSharedMutex::try_lock ( )
inlinevirtual

Implements heavyai::MutexInterface.

Definition at line 67 of file heavyai_locks.h.

Referenced by legacylockmgr::WrapperType< MutexType >::try_lock().

67 { return true; }

+ Here is the caller graph for this function:

virtual bool heavyai::DistributedSharedMutex::try_lock_shared ( )
inlinevirtual

Implements heavyai::SharedMutexInterface.

Definition at line 70 of file heavyai_locks.h.

Referenced by legacylockmgr::WrapperType< MutexType >::try_lock_shared().

70 { return true; }

+ Here is the caller graph for this function:

virtual void heavyai::DistributedSharedMutex::unlock ( )
inlinevirtual

Implements heavyai::MutexInterface.

Definition at line 68 of file heavyai_locks.h.

Referenced by legacylockmgr::WrapperType< MutexType >::unlock().

68 {}

+ Here is the caller graph for this function:

virtual void heavyai::DistributedSharedMutex::unlock_shared ( )
inlinevirtual

Implements heavyai::SharedMutexInterface.

Definition at line 71 of file heavyai_locks.h.

Referenced by legacylockmgr::WrapperType< MutexType >::unlock_shared().

71 {}

+ Here is the caller graph for this function:


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