Last change
on this file since 204 was 15, checked in by Bayard Gildas, 8 years ago |
sources reformatted with flair-format-dir script
|
File size:
930 bytes
|
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: 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 |
|
---|
| 21 | using std::string;
|
---|
| 22 |
|
---|
[15] | 23 | namespace flair {
|
---|
| 24 | namespace core {
|
---|
[2] | 25 |
|
---|
[15] | 26 | Mutex::Mutex(const Object *parent, string name)
|
---|
| 27 | : Object(parent, name, "mutex") {
|
---|
| 28 | pimpl_ = new Mutex_impl(this);
|
---|
[2] | 29 | }
|
---|
| 30 |
|
---|
[15] | 31 | Mutex::~Mutex() { delete pimpl_; }
|
---|
[2] | 32 |
|
---|
[15] | 33 | void Mutex::GetMutex(void) const { pimpl_->GetMutex(); }
|
---|
[2] | 34 |
|
---|
[15] | 35 | void Mutex::ReleaseMutex(void) const { pimpl_->ReleaseMutex(); }
|
---|
[2] | 36 |
|
---|
| 37 | /*
|
---|
| 38 | bool 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.