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:
dsandersoremutah
2006-06-12 19:29:16 +00:00
parent 2e73d78edb
commit 1a77c362ff
3 changed files with 26 additions and 31 deletions

View File

@@ -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:
****************************************************************************/