source: flair-src/trunk/lib/FlairCore/src/ConditionVariable.cpp@ 358

Last change on this file since 358 was 330, checked in by Sanahuja Guillaume, 5 years ago

use less bandwidth in vprnlite

File size: 1.1 KB
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
21using std::string;
22
23namespace flair {
24namespace core {
25
26ConditionVariable::ConditionVariable(const Object *parent, string name)
27 : Mutex(parent, name) {
28 pimpl_ = new ConditionVariable_impl(this);
29}
30
31ConditionVariable::~ConditionVariable() { delete pimpl_; }
32
33bool ConditionVariable::CondWait(Time timeout) { return pimpl_->CondWait(timeout); }
34
35bool ConditionVariable::CondWaitUntil(Time date) {
36 return pimpl_->CondWaitUntil(date);
37}
38
39void ConditionVariable::CondSignal(void) { pimpl_->CondSignal(); }
40
41} // end namespace core
42} // end namespace flair
Note: See TracBrowser for help on using the repository browser.