Added Mac support

This commit is contained in:
Thulinma 2014-04-17 16:49:00 +02:00
parent efa5d67231
commit 4de598054a
2 changed files with 65 additions and 8 deletions

View file

@ -38,6 +38,7 @@ namespace IPC {
sem_t * mySemaphore;
};
#if !defined __APPLE__ && !defined __CYGWIN__
class sharedPage{
public:
sharedPage(std::string name_ = "", unsigned int len_ = 0, bool master_ = false, bool autoBackoff = true);
@ -55,6 +56,9 @@ namespace IPC {
bool master;
char * mapped;
};
#else
class sharedPage;
#endif
class sharedFile{
public:
@ -73,7 +77,16 @@ namespace IPC {
bool master;
char * mapped;
};
#if defined __APPLE__ || defined __CYGWIN__
class sharedPage: public sharedFile{
public:
sharedPage(std::string name_ = "", unsigned int len_ = 0, bool master_ = false, bool autoBackoff = true);
sharedPage(const sharedPage & rhs);
~sharedPage();
};
#endif
class sharedServer{
public:
sharedServer();