< A monitor used to synchronize thread in views. More...
#include <view_support.h>
Public Member Functions | |
| ViewMonitor () | |
| ~ViewMonitor () | |
| void | enter () |
| void | leave () |
| enters protected section | |
| void | signal_keypress () |
| leaves protected section | |
| void | wait_keypress () |
| signals keypress inside a protected section | |
| void | signal_close () |
| waits for keypress inside a protected section | |
| void | wait_close () |
| signals close inside a protected section | |
| void | signal_drawing_finished () |
| waits for close inside a protected section | |
| void | wait_drawing_fisnihed () |
| signals drawing finished inside a protected section | |
| void | signal_cross_thread_call () |
| waits for drawing finished inside a protected section | |
| void | wait_cross_thread_call () |
| signals that cross-thread-call finished | |
Protected Attributes | |
| pthread_mutexattr_t | mutex_attr |
| Mutext attributes. | |
| pthread_mutex_t | mutex |
| Mutex that protects monitor. | |
| pthread_cond_t | cond_cross_thread_call |
| Condition used to signal a cross-thread call. | |
| pthread_cond_t | cond_keypress |
| Condition used to signal a keypress. | |
| pthread_cond_t | cond_close |
| Condition used to signal close of a window. | |
| pthread_cond_t | cond_drawing_finished |
| Condition used to signal that drawing has finished. | |
< A monitor used to synchronize thread in views.
| ViewMonitor::ViewMonitor | ( | ) |
| ViewMonitor::~ViewMonitor | ( | ) |
| void ViewMonitor::enter | ( | ) | [inline] |
| void ViewMonitor::leave | ( | ) | [inline] |
enters protected section
| void ViewMonitor::signal_close | ( | ) | [inline] |
waits for keypress inside a protected section
| void ViewMonitor::signal_cross_thread_call | ( | ) | [inline] |
waits for drawing finished inside a protected section
| void ViewMonitor::signal_drawing_finished | ( | ) | [inline] |
waits for close inside a protected section
| void ViewMonitor::signal_keypress | ( | ) | [inline] |
leaves protected section
| void ViewMonitor::wait_close | ( | ) | [inline] |
signals close inside a protected section
| void ViewMonitor::wait_cross_thread_call | ( | ) | [inline] |
signals that cross-thread-call finished
| void ViewMonitor::wait_drawing_fisnihed | ( | ) | [inline] |
signals drawing finished inside a protected section
| void ViewMonitor::wait_keypress | ( | ) | [inline] |
signals keypress inside a protected section
pthread_cond_t ViewMonitor::cond_close [protected] |
Condition used to signal close of a window.
pthread_cond_t ViewMonitor::cond_cross_thread_call [protected] |
Condition used to signal a cross-thread call.
pthread_cond_t ViewMonitor::cond_drawing_finished [protected] |
Condition used to signal that drawing has finished.
pthread_cond_t ViewMonitor::cond_keypress [protected] |
Condition used to signal a keypress.
pthread_mutex_t ViewMonitor::mutex [protected] |
Mutex that protects monitor.
pthread_mutexattr_t ViewMonitor::mutex_attr [protected] |
Mutext attributes.
1.6.3