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

#include <atomic_rw_lock.h>

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

Public Member Functions

 AtomicRWLock ()
 
 AtomicRWLock (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
 

Friends

class ReadLockGuard< AtomicRWLock >
 
class WriteLockGuard< AtomicRWLock >
 

Constructor & Destructor Documentation

◆ AtomicRWLock() [1/2]

apollo::cyber::base::AtomicRWLock::AtomicRWLock ( )
inline

◆ AtomicRWLock() [2/2]

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

Friends And Related Function Documentation

◆ ReadLockGuard< AtomicRWLock >

friend class ReadLockGuard< AtomicRWLock >
friend

◆ WriteLockGuard< AtomicRWLock >

friend class WriteLockGuard< AtomicRWLock >
friend

Member Data Documentation

◆ MAX_RETRY_TIMES

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

◆ RW_LOCK_FREE

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

◆ WRITE_EXCLUSIVE

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

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