mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
trunk/branch integration: Event & Mutex
This commit is contained in:
parent
a0997d01db
commit
05041e2689
@ -47,6 +47,8 @@
|
||||
#include "Poco/NamedEvent_WIN32U.h"
|
||||
#elif defined(POCO_OS_FAMILY_WINDOWS)
|
||||
#include "Poco/NamedEvent_WIN32.h"
|
||||
#elif defined(POCO_ANDROID)
|
||||
#include "Poco/NamedEvent_Android.h"
|
||||
#elif defined(POCO_OS_FAMILY_UNIX)
|
||||
#include "Poco/NamedEvent_UNIX.h"
|
||||
#else
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
|
||||
#include "Poco/Foundation.h"
|
||||
#if defined(sun) || defined(__APPLE__) || defined(__osf__) || defined(__QNX__)
|
||||
#if defined(sun) || defined(__APPLE__) || defined(__osf__) || defined(__QNX__) || defined(_AIX)
|
||||
#include <semaphore.h>
|
||||
#endif
|
||||
|
||||
@ -58,13 +58,13 @@ protected:
|
||||
void waitImpl();
|
||||
|
||||
private:
|
||||
std::string getFileName();
|
||||
std::string getFileName();
|
||||
|
||||
std::string _name;
|
||||
#if defined(sun) || defined(__APPLE__) || defined(__osf__) || defined(__QNX__)
|
||||
sem_t* _sem;
|
||||
std::string _name;
|
||||
#if defined(sun) || defined(__APPLE__) || defined(__osf__) || defined(__QNX__) || defined(_AIX)
|
||||
sem_t* _sem;
|
||||
#else
|
||||
int _lockfd; // lock file descriptor
|
||||
int _lockfd; // lock file descriptor
|
||||
int _semfd; // file used to identify semaphore
|
||||
int _semid; // semaphore id
|
||||
#endif
|
||||
|
@ -1,7 +1,7 @@
|
||||
//
|
||||
// NamedMutex.h
|
||||
//
|
||||
// $Id: //poco/svn/Foundation/include/Poco/NamedMutex.h#2 $
|
||||
// $Id: //poco/1.4/Foundation/include/Poco/NamedMutex.h#2 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Processes
|
||||
|
@ -43,7 +43,7 @@
|
||||
#include "Poco/Foundation.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#if defined(sun) || defined(__APPLE__) || defined(__osf__) || defined(__QNX__)
|
||||
#if defined(sun) || defined(__APPLE__) || defined(__osf__) || defined(__QNX__) || defined(_AIX)
|
||||
#include <semaphore.h>
|
||||
#endif
|
||||
|
||||
@ -61,13 +61,13 @@ protected:
|
||||
void unlockImpl();
|
||||
|
||||
private:
|
||||
std::string getFileName();
|
||||
std::string getFileName();
|
||||
|
||||
std::string _name;
|
||||
#if defined(sun) || defined(__APPLE__) || defined(__osf__) || defined(__QNX__)
|
||||
sem_t* _sem;
|
||||
std::string _name;
|
||||
#if defined(sun) || defined(__APPLE__) || defined(__osf__) || defined(__QNX__) || defined(_AIX)
|
||||
sem_t* _sem;
|
||||
#else
|
||||
int _lockfd; // lock file descriptor
|
||||
int _lockfd; // lock file descriptor
|
||||
int _semfd; // file used to identify semaphore
|
||||
int _semid; // semaphore id
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user