Last change
on this file since 465 was 330, checked in by Sanahuja Guillaume, 5 years ago |
use less bandwidth in vprnlite
|
File size:
1.1 KB
|
Rev | Line | |
---|
[2] | 1 | // %flair:license{
|
---|
[15] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[2] | 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 |
|
---|
[15] | 23 | namespace flair {
|
---|
| 24 | namespace core {
|
---|
[2] | 25 |
|
---|
[15] | 26 | ConditionVariable::ConditionVariable(const Object *parent, string name)
|
---|
| 27 | : Mutex(parent, name) {
|
---|
| 28 | pimpl_ = new ConditionVariable_impl(this);
|
---|
[2] | 29 | }
|
---|
| 30 |
|
---|
[15] | 31 | ConditionVariable::~ConditionVariable() { delete pimpl_; }
|
---|
[2] | 32 |
|
---|
[330] | 33 | bool ConditionVariable::CondWait(Time timeout) { return pimpl_->CondWait(timeout); }
|
---|
[2] | 34 |
|
---|
| 35 | bool ConditionVariable::CondWaitUntil(Time date) {
|
---|
[15] | 36 | return pimpl_->CondWaitUntil(date);
|
---|
[2] | 37 | }
|
---|
| 38 |
|
---|
[15] | 39 | void ConditionVariable::CondSignal(void) { pimpl_->CondSignal(); }
|
---|
[2] | 40 |
|
---|
| 41 | } // end namespace core
|
---|
| 42 | } // end namespace flair
|
---|
Note:
See
TracBrowser
for help on using the repository browser.