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

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

flaircore

File size: 939 bytes
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: 2012/03/14
6// filename: Mutex.cpp
7//
8// author: Guillaume Sanahuja
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: Class defining a mutex
14//
15//
16/*********************************************************************/
17
18#include "Mutex.h"
19#include "Mutex_impl.h"
20
21using std::string;
22
23namespace flair
24{
25namespace core
26{
27
28Mutex::Mutex(const Object *parent,string name): Object(parent, name,"mutex")
29{
30 pimpl_=new Mutex_impl(this);
31}
32
33Mutex::~Mutex()
34{
35 delete pimpl_;
36}
37
38void Mutex::GetMutex(void) const
39{
40 pimpl_->GetMutex();
41}
42
43void Mutex::ReleaseMutex(void) const
44{
45 pimpl_->ReleaseMutex();
46}
47
48/*
49bool Mutex::IsLocked(void)
50{
51 return pimpl_->IsLocked();
52}
53*/
54
55} // end namespace core
56} // end namespace flair
Note: See TracBrowser for help on using the repository browser.