export UsingNPTL
This commit is contained in:
@@ -46,7 +46,7 @@ CString ThreadsVersion()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Crash-conditions-safe: */
|
/* Crash-conditions-safe: */
|
||||||
static bool UsingNPTL()
|
bool UsingNPTL()
|
||||||
{
|
{
|
||||||
char buf[1024] = "";
|
char buf[1024] = "";
|
||||||
int ret = confstr( _CS_GNU_LIBPTHREAD_VERSION, buf, sizeof(buf) );
|
int ret = confstr( _CS_GNU_LIBPTHREAD_VERSION, buf, sizeof(buf) );
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ CString ThreadsVersion();
|
|||||||
/* Get the current thread's ThreadID. */
|
/* Get the current thread's ThreadID. */
|
||||||
int GetCurrentThreadId();
|
int GetCurrentThreadId();
|
||||||
|
|
||||||
|
/* Return true if NPTL libraries are in use, false if linuxthreads. */
|
||||||
|
bool UsingNPTL();
|
||||||
|
|
||||||
int SuspendThread( int ThreadID );
|
int SuspendThread( int ThreadID );
|
||||||
int ResumeThread( int ThreadID );
|
int ResumeThread( int ThreadID );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user