added epicsThreadGetPthreadIdSelf()

This commit is contained in:
Jeff Hill
2002-10-23 22:23:54 +00:00
parent e1e2df53ad
commit c288011b87
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -469,6 +469,11 @@ epicsThreadId epicsThreadGetIdSelf(void) {
return(pthreadInfo);
}
pthread_t epicsThreadGetPThreadIdSelf ( epicsThreadPrivateId id )
{
return ( pthreadInfo->tid );
}
epicsThreadId epicsThreadGetId(const char *name) {
epicsThreadOSD *pthreadInfo;
if(!epicsThreadInitCalled) epicsThreadInit();
@@ -580,3 +585,4 @@ void *epicsThreadPrivateGet(epicsThreadPrivateId id)
errlogPrintf("epicsThreadPrivateGet: pthread_getspecific returned 0\n");
return(value);
}
+4
View File
@@ -10,4 +10,8 @@
#ifndef osdThreadh
#define osdThreadh
#include <pthread.h>
pthread_t epicsThreadGetPthreadIdSelf ( epicsThreadPrivateId id );
#endif /* osdThreadh */