rcpp_framework/core/shared_resource.h

23 lines
331 B
C
Raw Normal View History

#ifndef SHARED_RESOURCE_H
#define SHARED_RESOURCE_H
#include "core/string.h"
#include "resource.h"
#include "core/threading/mutex.h"
class SharedResource : public Resource {
RCPP_OBJECT(SharedResource, Resource);
public:
void lock();
void unlock();
SharedResource();
~SharedResource();
private:
Mutex _mutex;
};
#endif