win32 getpid
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
// module version
|
||||
// TODO to be generated, etc.
|
||||
#define EPICS_PVA_MAJOR_VERSION 4
|
||||
#define EPICS_PVA_MINOR_VERSION 0
|
||||
#define EPICS_PVA_MINOR_VERSION 1
|
||||
#define EPICS_PVA_MAINTENANCE_VERSION 0
|
||||
#define EPICS_PVA_DEVELOPMENT_FLAG 1
|
||||
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
#include <taskLib.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <process.h>
|
||||
#endif
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include <pv/responseHandlers.h>
|
||||
@@ -546,6 +550,8 @@ public:
|
||||
std::stringstream sspid;
|
||||
#ifdef __vxworks
|
||||
sspid << taskIdSelf();
|
||||
#elif defined(_WIN32)
|
||||
sspid << _getpid();
|
||||
#else
|
||||
sspid << getpid();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user