B2BITS FIX Antenna HFT  1.0.18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
rwlock_t< lock_t > Class Template Reference

#include <b2b_platform.h>

Public Member Functions

void readLock () throw ()
 
void readUnlock () throw ()
 
 rwlock_t ()=default
 
bool wasKnocked () throw ()
 
void writeLock (bool knockKnock=true) throw ()
 
void writeUnlock () throw ()
 

Public Attributes

std::atomic< int > count_ = { 0 }
 
std::atomic< int > knocked_ = { 0 }
 
lock_t lock_
 

Constructor & Destructor Documentation

template<class lock_t>
rwlock_t< lock_t >::rwlock_t ( )
default

Member Function Documentation

template<class lock_t>
void rwlock_t< lock_t >::readLock ( )
throw (
)
inline
template<class lock_t>
void rwlock_t< lock_t >::readUnlock ( )
throw (
)
inline
template<class lock_t>
bool rwlock_t< lock_t >::wasKnocked ( )
throw (
)
inline
template<class lock_t>
void rwlock_t< lock_t >::writeLock ( bool  knockKnock = true)
throw (
)
inline
template<class lock_t>
void rwlock_t< lock_t >::writeUnlock ( )
throw (
)
inline

Member Data Documentation

template<class lock_t>
std::atomic<int> rwlock_t< lock_t >::count_ = { 0 }
template<class lock_t>
std::atomic<int> rwlock_t< lock_t >::knocked_ = { 0 }
template<class lock_t>
lock_t rwlock_t< lock_t >::lock_