drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
user_locks::Observer Class Reference

Public Types

typedef std::shared_ptr< Observer > shared_ptr
typedef std::list< shared_ptr > list

Public Member Functions

 Observer (int64_t wait_until_arg)
void sleep ()
void wake ()
int64_t getLimit () const

Private Attributes

bool woken
const int64_t waiting_for
boost::mutex _mutex
boost::condition_variable_any cond

Detailed Description

Definition at line 39 of file observer.h.

Member Typedef Documentation

◆ list

typedef std::list<shared_ptr> user_locks::Observer::list

Definition at line 42 of file observer.h.

◆ shared_ptr

typedef std::shared_ptr<Observer> user_locks::Observer::shared_ptr

Definition at line 41 of file observer.h.

Constructor & Destructor Documentation

◆ Observer()

user_locks::Observer::Observer ( int64_t wait_until_arg)
inline

Definition at line 44 of file observer.h.

◆ ~Observer()

user_locks::Observer::~Observer ( )
inline

Definition at line 69 of file observer.h.

Member Function Documentation

◆ getLimit()

int64_t user_locks::Observer::getLimit ( ) const
inline

Definition at line 73 of file observer.h.

◆ sleep()

void user_locks::Observer::sleep ( )
inline

Definition at line 51 of file observer.h.

◆ wake()

void user_locks::Observer::wake ( )
inline

Definition at line 60 of file observer.h.

Member Data Documentation

◆ _mutex

boost::mutex user_locks::Observer::_mutex
private

Definition at line 81 of file observer.h.

◆ cond

boost::condition_variable_any user_locks::Observer::cond
private

Definition at line 82 of file observer.h.

◆ waiting_for

const int64_t user_locks::Observer::waiting_for
private

Definition at line 80 of file observer.h.

◆ woken

bool user_locks::Observer::woken
private

Definition at line 79 of file observer.h.


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