Added f_getpid call - so all applications can call it.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@546 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -25,6 +25,10 @@
|
||||
|
||||
#include "ftksys.h"
|
||||
|
||||
#ifdef FLM_UNIX
|
||||
pid_t getpid( void);
|
||||
#endif
|
||||
|
||||
#ifdef FLM_LIBC_NLM
|
||||
void * threadStub(
|
||||
void * pvThread);
|
||||
@@ -1513,6 +1517,22 @@ void FLMAPI f_threadDestroy(
|
||||
}
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
Desc:
|
||||
****************************************************************************/
|
||||
FLMUINT f_getpid( void)
|
||||
{
|
||||
#if defined( FLM_WIN)
|
||||
return _getpid();
|
||||
#elif defined( FLM_UNIX)
|
||||
return getpid();
|
||||
#elif defined( FLM_NLM)
|
||||
return( (FLMUINT)f_getNLMHandle());
|
||||
#else
|
||||
#error "Unsupported Platform"
|
||||
#endif
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
Desc:
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user