Apollo  6.0
Open source self driving car software
Public Member Functions | Static Public Attributes | Friends | List of all members
apollo::cyber::base::ReentrantRWLock Class Reference

#include <reentrant_rw_lock.h>

Collaboration diagram for apollo::cyber::base::ReentrantRWLock:
Collaboration graph

Public Member Functions

 ReentrantRWLock ()
 
 ReentrantRWLock (bool write_first)
 

Static Public Attributes

static const int32_t RW_LOCK_FREE = 0
 
static const int32_t WRITE_EXCLUSIVE = -1
 
static const uint32_t MAX_RETRY_TIMES = 5
 
static const std::thread::id null_thread
 

Friends

class ReadLockGuard< ReentrantRWLock >
 
class WriteLockGuard< ReentrantRWLock >
 

Constructor & Destructor Documentation

◆ ReentrantRWLock() [1/2]

apollo::cyber::base::ReentrantRWLock::ReentrantRWLock ( )
inline

◆ ReentrantRWLock() [2/2]

apollo::cyber::base::ReentrantRWLock::ReentrantRWLock ( bool  write_first)
inlineexplicit

Friends And Related Function Documentation

◆ ReadLockGuard< ReentrantRWLock >

friend class ReadLockGuard< ReentrantRWLock >
friend

◆ WriteLockGuard< ReentrantRWLock >

friend class WriteLockGuard< ReentrantRWLock >
friend

Member Data Documentation

◆ MAX_RETRY_TIMES

const uint32_t apollo::cyber::base::ReentrantRWLock::MAX_RETRY_TIMES = 5
static

◆ null_thread

const std::thread::id apollo::cyber::base::ReentrantRWLock::null_thread
static

◆ RW_LOCK_FREE

const int32_t apollo::cyber::base::ReentrantRWLock::RW_LOCK_FREE = 0
static

◆ WRITE_EXCLUSIVE

const int32_t apollo::cyber::base::ReentrantRWLock::WRITE_EXCLUSIVE = -1
static

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