Fixed Windows typo.
This commit is contained in:
parent
e672959f96
commit
a891b5ba41
2 changed files with 2 additions and 3 deletions
|
@ -208,7 +208,7 @@ namespace IPC {
|
|||
///\brief Unlinks the previously opened semaphore
|
||||
void semaphore::unlink() {
|
||||
close();
|
||||
#if defined(__CYGWIN__) || defined(_WIN32)
|
||||
#if !defined(__CYGWIN__) && !defined(_WIN32)
|
||||
if (myName.size()) {
|
||||
sem_unlink(myName.c_str());
|
||||
}
|
||||
|
|
|
@ -111,13 +111,12 @@ namespace IPC {
|
|||
char * mapped;
|
||||
};
|
||||
|
||||
#ifdef SHM_ENABLED
|
||||
|
||||
#if defined(__CYGWIN__) || defined(_WIN32)
|
||||
void preservePage(std::string);
|
||||
void releasePage(std::string);
|
||||
#endif
|
||||
|
||||
#ifdef SHM_ENABLED
|
||||
///\brief A class for managing shared memory pages.
|
||||
class sharedPage {
|
||||
public:
|
||||
|
|
Loading…
Add table
Reference in a new issue