mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
28 lines
510 B
C++
28 lines
510 B
C++
#include "shared_resource.h"
|
|
|
|
void SharedResource::read_lock() {
|
|
_lock.read_lock();
|
|
}
|
|
void SharedResource::read_unlock() {
|
|
_lock.read_unlock();
|
|
}
|
|
Error SharedResource::read_try_lock() {
|
|
return _lock.read_try_lock();
|
|
}
|
|
|
|
void SharedResource::write_lock() {
|
|
_lock.write_lock();
|
|
}
|
|
void SharedResource::write_unlock() {
|
|
_lock.write_unlock();
|
|
}
|
|
Error SharedResource::write_try_lock() {
|
|
return _lock.write_try_lock();
|
|
}
|
|
|
|
SharedResource::SharedResource() :
|
|
Resource() {
|
|
}
|
|
|
|
SharedResource::~SharedResource() {
|
|
} |