#include <Threads.hpp>
Typy publiczne | |
| enum | TYPE { TYPE_AUTO_RESET, TYPE_MANUAL_RESET } |
Metody publiczne | |
| Event (bool InitialState, TYPE Type) | |
| ~Event () | |
| void | Set () |
| Zmienia stan na true. | |
| void | Reset () |
| Zmienia stan na false. | |
| void | Wait () |
| Czeka, aż stan będzie true. | |
| bool | Test () |
| Zwraca stan. | |
| bool | TimeoutWait (uint Milliseconds) |
| Czeka, aż stan będzie true przez co najwyżej podany czas. | |
Ten obiekt, wzorowany na WinAPI. Jest trochę podobny do zmiennej warunkowej, ale ma swój stan - true lub false.
| enum common::Event::TYPE |
| common::Event::Event | ( | bool | InitialState, | |
| TYPE | Type | |||
| ) |
| common::Event::~Event | ( | ) |
| void common::Event::Set | ( | ) |
Zmienia stan na true.
| void common::Event::Reset | ( | ) |
Zmienia stan na false.
| void common::Event::Wait | ( | ) |
Czeka, aż stan będzie true.
| bool common::Event::Test | ( | ) |
Zwraca stan.
Event::TYPE_AUTO_RESET: Jeśli był true, przestawia go z powrotem na false.
| bool common::Event::TimeoutWait | ( | uint | Milliseconds | ) |
Czeka, aż stan będzie true przez co najwyżej podany czas.
1.5.5