rcpp_framework/core/shared_resource.cpp

28 lines
510 B
C++
Raw Normal View History

#include "shared_resource.h"
2022-02-04 13:53:30 +01:00
void SharedResource::read_lock() {
_lock.read_lock();
}
2022-02-04 13:53:30 +01:00
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() {
}