This is Unofficial EPICS BASE Doxygen Site
osdThread.h File Reference
#include <pthread.h>
#include <sys/types.h>
#include "libComAPI.h"
#include "ellLib.h"
#include "epicsEvent.h"
+ Include dependency graph for osdThread.h:

Go to the source code of this file.

Classes

struct  epicsThreadOSD
 

Typedefs

typedef struct epicsThreadOSD epicsThreadOSD
 

Functions

LIBCOM_API pthread_t epicsThreadGetPosixThreadId (epicsThreadId id)
 
LIBCOM_API int epicsThreadGetPosixPriority (epicsThreadId id)
 

Typedef Documentation

Function Documentation

LIBCOM_API int epicsThreadGetPosixPriority ( epicsThreadId  id)

Definition at line 115 of file osdThread.c.

116 {
117 #if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) && _POSIX_THREAD_PRIORITY_SCHEDULING > 0
118  double maxPriority,minPriority,slope,oss;
119 
120  if(pcommonAttr->maxPriority==pcommonAttr->minPriority)
121  return(pcommonAttr->maxPriority);
122  maxPriority = (double)pcommonAttr->maxPriority;
123  minPriority = (double)pcommonAttr->minPriority;
124  slope = (maxPriority - minPriority)/100.0;
125  oss = (double)pthreadInfo->osiPriority * slope + minPriority;
126  return((int)oss);
127 #else
128  return 0;
129 #endif /* _POSIX_THREAD_PRIORITY_SCHEDULING */
130 }
int maxPriority
Definition: osdThread.c:64
int minPriority
Definition: osdThread.c:65
LIBCOM_API pthread_t epicsThreadGetPosixThreadId ( epicsThreadId  id)

Definition at line 821 of file osdThread.c.

822 {
823  return threadId->tid;
824 }