2017-03-02 09:28:07 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
struct PlatformMutex {
|
|
|
|
virtual ~PlatformMutex() {}
|
|
|
|
};
|
|
|
|
struct PlatformScopedMutexLock {
|
|
|
|
virtual ~PlatformScopedMutexLock() {}
|
|
|
|
};
|
|
|
|
struct PlatformSharedMemory {
|
2017-03-13 06:03:54 +00:00
|
|
|
virtual ~PlatformSharedMemory() {}
|
2017-03-19 22:06:22 +00:00
|
|
|
void* data;
|
|
|
|
size_t capacity;
|
2017-03-15 04:59:05 +00:00
|
|
|
std::string name;
|
2017-03-02 09:28:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
std::unique_ptr<PlatformMutex> CreatePlatformMutex(const std::string& name);
|
|
|
|
std::unique_ptr<PlatformScopedMutexLock> CreatePlatformScopedMutexLock(PlatformMutex* mutex);
|
2017-03-19 22:06:22 +00:00
|
|
|
std::unique_ptr<PlatformSharedMemory> CreatePlatformSharedMemory(const std::string& name, size_t size);
|
2017-03-05 19:48:05 +00:00
|
|
|
|
|
|
|
std::string GetWorkingDirectory();
|