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

Last change on this file since 120 was 15, checked in by Bayard Gildas, 8 years ago

sources reformatted with flair-format-dir script

File size: 930 bytes
RevLine 
[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: 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
[15]23namespace flair {
24namespace core {
[2]25
[15]26Mutex::Mutex(const Object *parent, string name)
27 : Object(parent, name, "mutex") {
28 pimpl_ = new Mutex_impl(this);
[2]29}
30
[15]31Mutex::~Mutex() { delete pimpl_; }
[2]32
[15]33void Mutex::GetMutex(void) const { pimpl_->GetMutex(); }
[2]34
[15]35void Mutex::ReleaseMutex(void) const { pimpl_->ReleaseMutex(); }
[2]36
37/*
38bool Mutex::IsLocked(void)
39{
40 return pimpl_->IsLocked();
41}
42*/
43
44} // end namespace core
45} // end namespace flair
Note: See TracBrowser for help on using the repository browser.