B2BITS FIX Antenna HFT  1.0.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
spinlock Class Reference

#include <b2b_platform.h>

Public Member Functions

void fini () throw ()
 
void init () throw ()
 
bool isLocked () throw ()
 
void lock () throw ()
 
 spinlock ()
 
bool try_lock () throw ()
 
void unlock () throw ()
 
 ~spinlock ()
 

Public Attributes

SPINLOCK_T lock_
 

Constructor & Destructor Documentation

spinlock::spinlock ( )
inline

References init().

spinlock::~spinlock ( )
inline

References fini().

Member Function Documentation

void spinlock::fini ( )
throw (
)
inline

References lock_, and SPINLOCK_FINI.

Referenced by ~spinlock().

void spinlock::init ( )
throw (
)
inline

References lock_, and SPINLOCK_INIT.

Referenced by spinlock().

bool spinlock::isLocked ( )
throw (
)
inline

References lock_.

void spinlock::lock ( )
throw (
)
inline

References lock_, and SPIN_LOCK.

bool spinlock::try_lock ( )
throw (
)
inline

References lock_, and SPIN_TRYLOCK.

void spinlock::unlock ( )
throw (
)
inline

References lock_, and SPIN_UNLOCK.

Member Data Documentation

SPINLOCK_T spinlock::lock_

Referenced by fini(), init(), isLocked(), lock(), try_lock(), and unlock().