Condition template class. More...
#include <Condition.h>
Public Member Functions | |
| void | broadcast () |
| void | broadcast () |
| Resume of all the thread practice. | |
| void | broadcast () |
| Resume of all the thread practice. | |
| Condition (Mutex &mutex) | |
| Condition (M &mutex) | |
| Constructor. | |
| Condition (M &mutex) | |
| Constructor. | |
| void | signal () |
| void | signal () |
| Resume of the thread practice. | |
| void | signal () |
| Resume of the thread practice. | |
| bool | wait () |
| bool | wait (long second, long nano_second=0) |
| bool | wait () |
| Wait of the thread practice. | |
| bool | wait (long second, long nano_second=0) |
| Thread practice wait of set time. | |
| bool | wait () |
| Wait of the thread practice. | |
| bool | wait (long second, long nano_second=0) |
| Thread practice wait of set time. | |
| ~Condition () | |
| ~Condition () | |
| Destructor. | |
| ~Condition () | |
| Destructor. | |
Private Member Functions | |
| Condition (const Mutex &) | |
| Condition (const M &) | |
| Condition (const Mutex &) | |
| Condition & | operator= (const Mutex &) |
| Condition & | operator= (const M &) |
| Condition & | operator= (const Mutex &) |
| int | pthread_cond_broadcast (pthread_cond_t *cv) |
| Resume of all the thread practice. | |
| int | pthread_cond_signal (pthread_cond_t *cv) |
| Resume of the thread practice. | |
| int | pthread_cond_wait (coil::pthread_cond_t *cv, coil::Mutex *external_mutex, DWORD aMilliSecond) |
| Wait of the thread practice. | |
Private Attributes | |
| ACE_cond_t | m_cond |
| pthread_cond_t | m_cond |
| coil::pthread_cond_t | m_cond |
| Mutex & | m_mutex |
| M & | m_mutex |
Condition template class.
Definition at line 39 of file ace/coil/Condition.h.
| coil::Condition< Mutex >::Condition | ( | Mutex & | mutex | ) | [inline] |
Definition at line 42 of file ace/coil/Condition.h.
| coil::Condition< Mutex >::~Condition | ( | ) | [inline] |
Definition at line 48 of file ace/coil/Condition.h.
| coil::Condition< Mutex >::Condition | ( | const Mutex & | ) | [private] |
| coil::Condition< Mutex >::Condition | ( | M & | mutex | ) | [inline] |
| coil::Condition< Mutex >::~Condition | ( | ) | [inline] |
| coil::Condition< Mutex >::Condition | ( | const M & | ) | [private] |
| coil::Condition< Mutex >::Condition | ( | M & | mutex | ) | [inline] |
| coil::Condition< Mutex >::~Condition | ( | ) | [inline] |
| coil::Condition< Mutex >::Condition | ( | const Mutex & | ) | [private] |
| void coil::Condition< Mutex >::broadcast | ( | ) | [inline] |
Definition at line 59 of file ace/coil/Condition.h.
| void coil::Condition< Mutex >::broadcast | ( | ) | [inline] |
Resume of all the thread practice.
Let all waiting thread practice resume.
Definition at line 124 of file posix/coil/Condition.h.
| void coil::Condition< Mutex >::broadcast | ( | ) | [inline] |
Resume of all the thread practice.
Let all waiting thread practice resume.
Definition at line 162 of file win32/coil/Condition.h.
| Condition& coil::Condition< Mutex >::operator= | ( | const Mutex & | ) | [private] |
| Condition& coil::Condition< Mutex >::operator= | ( | const M & | ) | [private] |
| Condition& coil::Condition< Mutex >::operator= | ( | const Mutex & | ) | [private] |
| int coil::Condition< Mutex >::pthread_cond_broadcast | ( | pthread_cond_t * | cv | ) | [inline, private] |
Resume of all the thread practice.
Let all waiting thread practice resume.
Definition at line 356 of file win32/coil/Condition.h.
| int coil::Condition< Mutex >::pthread_cond_signal | ( | pthread_cond_t * | cv | ) | [inline, private] |
Resume of the thread practice.
Let the practice of a waiting thread resume.
Definition at line 323 of file win32/coil/Condition.h.
| int coil::Condition< Mutex >::pthread_cond_wait | ( | coil::pthread_cond_t * | cv, |
| coil::Mutex * | external_mutex, | ||
| DWORD | aMilliSecond | ||
| ) | [inline, private] |
Wait of the thread practice.
Stop the practice of the thread till become the signal state.
Definition at line 243 of file win32/coil/Condition.h.
| void coil::Condition< Mutex >::signal | ( | ) | [inline] |
Definition at line 53 of file ace/coil/Condition.h.
| void coil::Condition< Mutex >::signal | ( | void | ) | [inline] |
Resume of the thread practice.
Let the practice of a waiting thread resume.
Definition at line 104 of file posix/coil/Condition.h.
| void coil::Condition< Mutex >::signal | ( | void | ) | [inline] |
Resume of the thread practice.
Let the practice of a waiting thread resume.
Definition at line 142 of file win32/coil/Condition.h.
| bool coil::Condition< Mutex >::wait | ( | ) | [inline] |
Definition at line 65 of file ace/coil/Condition.h.
| bool coil::Condition< Mutex >::wait | ( | long | second, |
| long | nano_second = 0 |
||
| ) | [inline] |
Definition at line 71 of file ace/coil/Condition.h.
| bool coil::Condition< Mutex >::wait | ( | ) | [inline] |
Wait of the thread practice.
Stop the practice of the thread till a condition variable is transmitted.
Definition at line 148 of file posix/coil/Condition.h.
| bool coil::Condition< Mutex >::wait | ( | long | second, |
| long | nano_second = 0 |
||
| ) | [inline] |
Thread practice wait of set time.
In set time, stop the practice of the thread.
| second | Time of the seconds. |
| nano_second | time of the nanoseconds. |
Definition at line 178 of file posix/coil/Condition.h.
| bool coil::Condition< Mutex >::wait | ( | void | ) | [inline] |
Wait of the thread practice.
Stop the practice of the thread till a condition variable is transmitted.
Definition at line 186 of file win32/coil/Condition.h.
| bool coil::Condition< Mutex >::wait | ( | long | second, |
| long | nano_second = 0 |
||
| ) | [inline] |
Thread practice wait of set time.
In set time, stop the practice of the thread.
| second | Time of the seconds. |
| nano_second | time of the nanoseconds. |
Definition at line 216 of file win32/coil/Condition.h.
ACE_cond_t coil::Condition< Mutex >::m_cond [private] |
Definition at line 84 of file ace/coil/Condition.h.
pthread_cond_t coil::Condition< Mutex >::m_cond [private] |
Definition at line 189 of file posix/coil/Condition.h.
coil::pthread_cond_t coil::Condition< Mutex >::m_cond [private] |
Definition at line 393 of file win32/coil/Condition.h.
M & coil::Condition< Mutex >::m_mutex [private] |
Definition at line 85 of file ace/coil/Condition.h.
M& coil::Condition< Mutex >::m_mutex [private] |
Definition at line 190 of file posix/coil/Condition.h.