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