Last change
on this file since 2 was 2, checked in by Sanahuja Guillaume, 8 years ago |
flaircore
|
File size:
939 bytes
|
Rev | Line | |
---|
[2] | 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 | {
|
---|
| 25 | namespace core
|
---|
| 26 | {
|
---|
| 27 |
|
---|
| 28 | Mutex::Mutex(const Object *parent,string name): Object(parent, name,"mutex")
|
---|
| 29 | {
|
---|
| 30 | pimpl_=new Mutex_impl(this);
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | Mutex::~Mutex()
|
---|
| 34 | {
|
---|
| 35 | delete pimpl_;
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | void Mutex::GetMutex(void) const
|
---|
| 39 | {
|
---|
| 40 | pimpl_->GetMutex();
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | void Mutex::ReleaseMutex(void) const
|
---|
| 44 | {
|
---|
| 45 | pimpl_->ReleaseMutex();
|
---|
| 46 | }
|
---|
| 47 |
|
---|
| 48 | /*
|
---|
| 49 | bool 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.