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

Last change on this file since 13 was 2, checked in by Sanahuja Guillaume, 9 years ago

flaircore

File size: 1.0 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 { namespace core {
24
25ConditionVariable::ConditionVariable(const Object* parent,string name): Mutex(parent,name) {
26 pimpl_=new ConditionVariable_impl(this);
27}
28
29ConditionVariable::~ConditionVariable() {
30 delete pimpl_;
31}
32
33void ConditionVariable::CondWait(void) {
34 pimpl_->CondWait();
35}
36
37bool ConditionVariable::CondWaitUntil(Time date) {
38 return pimpl_->CondWaitUntil(date);
39}
40
41void 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.