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.
30 lines
526 B
30 lines
526 B
#ifndef _WINHELPER_H
|
|
#define _WINHELPER_H
|
|
|
|
#ifdef _WIN32
|
|
static constexpr int RTLD_LAZY = 1, RTLD_NOW = 1;
|
|
void* dlopen(const char*, int);
|
|
void* dlsym(void*, const char*);
|
|
int dlclose(void*);
|
|
int dlerror();
|
|
|
|
struct SharedMemory
|
|
{
|
|
void* hFileMap;
|
|
void* pData;
|
|
SharedMemory(const char*);
|
|
void FreeMemoryMap();
|
|
};
|
|
class A_Semaphore {
|
|
private:
|
|
void* native_handle;
|
|
public:
|
|
A_Semaphore(bool);
|
|
void acquire();
|
|
void release();
|
|
~A_Semaphore();
|
|
};
|
|
#endif // WIN32
|
|
|
|
#endif // WINHELPER
|