Line | |
---|
1 | // %flair:license{
|
---|
2 | // This file is part of the Flair framework distributed under the
|
---|
3 | // CECILL-C License, Version 1.0.
|
---|
4 | // %flair:license}
|
---|
5 | // created: 2014/02/07
|
---|
6 | // filename: ConditionVariable.cpp
|
---|
7 | //
|
---|
8 | // author: Guillaume Sanahuja
|
---|
9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
10 | //
|
---|
11 | // version: $Id: $
|
---|
12 | //
|
---|
13 | // purpose: Class defining a condition variable
|
---|
14 | //
|
---|
15 | //
|
---|
16 | /*********************************************************************/
|
---|
17 |
|
---|
18 | #include "ConditionVariable.h"
|
---|
19 | #include "ConditionVariable_impl.h"
|
---|
20 |
|
---|
21 | using std::string;
|
---|
22 |
|
---|
23 | namespace flair { namespace core {
|
---|
24 |
|
---|
25 | ConditionVariable::ConditionVariable(const Object* parent,string name): Mutex(parent,name) {
|
---|
26 | pimpl_=new ConditionVariable_impl(this);
|
---|
27 | }
|
---|
28 |
|
---|
29 | ConditionVariable::~ConditionVariable() {
|
---|
30 | delete pimpl_;
|
---|
31 | }
|
---|
32 |
|
---|
33 | void ConditionVariable::CondWait(void) {
|
---|
34 | pimpl_->CondWait();
|
---|
35 | }
|
---|
36 |
|
---|
37 | bool ConditionVariable::CondWaitUntil(Time date) {
|
---|
38 | return pimpl_->CondWaitUntil(date);
|
---|
39 | }
|
---|
40 |
|
---|
41 | void ConditionVariable::CondSignal(void) {
|
---|
42 | pimpl_->CondSignal();
|
---|
43 | }
|
---|
44 |
|
---|
45 | } // end namespace core
|
---|
46 | } // end namespace flair
|
---|
Note:
See
TracBrowser
for help on using the repository browser.