Scopira 20080306

scopira::tool::event_ptr< T > Class Template Reference

#include <thread_pthreads.h>

Inheritance diagram for scopira::tool::event_ptr< T >:
scopira::tool::locker_ptr< T > scopira::tool::locker_ptr< T > scopira::tool::area_ptr< T > scopira::tool::area_ptr< T > scopira::tool::area_ptr< T > scopira::tool::area_ptr< T >

List of all members.

Public Member Functions

 event_ptr (const event_area< T > &ref)
 ctor
void notify (void)
void notify_all (void)
void wait (void)
bool wait (int msec)
 event_ptr (const event_area< T > &ref)
 ctor
void notify (void)
void notify_all (void)
void wait (void)
bool wait (int msec)

Protected Attributes

scopira::tool::conditiondm_cond

Detailed Description

template<class T>
class scopira::tool::event_ptr< T >

This ptr builds on locker_ptr and adds condition aware helper methods.

Author:
Aleksander Demko

Member Function Documentation

template<class T>
void scopira::tool::event_ptr< T >::notify ( void  ) [inline]

Reflects the call back to the pm_condition.

Remember, you can also call notify from outside the mutex lock region.

Author:
Aleksander Demko

References scopira::tool::condition::notify().

template<class T>
void scopira::tool::event_ptr< T >::notify ( void  ) [inline]

Reflects the call back to the pm_condition.

Remember, you can also call notify from outside the mutex lock region.

Author:
Aleksander Demko

References scopira::tool::condition::notify().

template<class T>
void scopira::tool::event_ptr< T >::notify_all ( void  ) [inline]

Reflects the call back to the pm_condition.

Remember, you can also call notify from outside the mutex lock region.

Author:
Aleksander Demko

References scopira::tool::condition::notify_all().

template<class T>
void scopira::tool::event_ptr< T >::notify_all ( void  ) [inline]

Reflects the call back to the pm_condition.

Remember, you can also call notify from outside the mutex lock region.

Author:
Aleksander Demko

References scopira::tool::condition::notify_all().

template<class T>
bool scopira::tool::event_ptr< T >::wait ( int  msec) [inline]

Reflector.

Calls wait() on the contained pm_condition with its matching pm_mutex.

Returns:
true if timed out, false if got a notification event
Author:
Aleksander Demko

References scopira::tool::condition::wait().

template<class T>
bool scopira::tool::event_ptr< T >::wait ( int  msec) [inline]

Reflector.

Calls wait() on the contained pm_condition with its matching pm_mutex.

Returns:
true if timed out, false if got a notification event
Author:
Aleksander Demko

References scopira::tool::condition::wait().

template<class T>
void scopira::tool::event_ptr< T >::wait ( void  ) [inline]

Reflector.

Calls wait() on the contained pm_condition with its matching pm_mutex.

Author:
Aleksander Demko

References scopira::tool::condition::wait().

template<class T>
void scopira::tool::event_ptr< T >::wait ( void  ) [inline]

Reflector.

Calls wait() on the contained pm_condition with its matching pm_mutex.

Author:
Aleksander Demko

References scopira::tool::condition::wait().


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