You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
376 B
27 lines
376 B
#ifndef _RESOURCES_LOCK_HPP_
|
|
#define _RESOURCES_LOCK_HPP_
|
|
|
|
#include <memory>
|
|
|
|
/**
|
|
* Resource Lock interface class
|
|
*
|
|
* Used for multithreading purpouses
|
|
*/
|
|
class ResourceLock
|
|
{
|
|
public:
|
|
ResourceLock();
|
|
~ResourceLock();
|
|
|
|
void lock();
|
|
void unlock();
|
|
|
|
private:
|
|
class ResourceLock_Impl;
|
|
std::unique_ptr<ResourceLock_Impl> impl;
|
|
|
|
};
|
|
|
|
#endif // _RESOURCES_LOCK_HPP_
|