OmniSciDB  72c90bc290
 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 45 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 55 of file heavyai_locks.h.

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

Definition at line 58 of file heavyai_locks.h.

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

Definition at line 60 of file heavyai_locks.h.

60 {}

Member Function Documentation

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

Definition at line 68 of file heavyai_locks.h.

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

Definition at line 70 of file heavyai_locks.h.

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

Implements heavyai::MutexInterface.

Definition at line 62 of file heavyai_locks.h.

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

62 {}

+ Here is the caller graph for this function:

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

Implements heavyai::SharedMutexInterface.

Definition at line 65 of file heavyai_locks.h.

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

65 {}

+ Here is the caller graph for this function:

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

Definition at line 69 of file heavyai_locks.h.

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

Definition at line 71 of file heavyai_locks.h.

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

Implements heavyai::MutexInterface.

Definition at line 63 of file heavyai_locks.h.

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

63 { return true; }

+ Here is the caller graph for this function:

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

Implements heavyai::SharedMutexInterface.

Definition at line 66 of file heavyai_locks.h.

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

66 { return true; }

+ Here is the caller graph for this function:

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

Implements heavyai::MutexInterface.

Definition at line 64 of file heavyai_locks.h.

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

64 {}

+ Here is the caller graph for this function:

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

Implements heavyai::SharedMutexInterface.

Definition at line 67 of file heavyai_locks.h.

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

67 {}

+ Here is the caller graph for this function:


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