This is Unofficial EPICS BASE Doxygen Site
osdThread.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * EPICS BASE is distributed subject to a Software License Agreement found
7 * in file LICENSE that is included with this distribution.
8 \*************************************************************************/
9 #ifndef INC_osdThread_H
10 #define INC_osdThread_H
11 
12 #include <pthread.h>
13 #include <sys/types.h>
14 
15 #include "libComAPI.h"
16 #include "ellLib.h"
17 #include "epicsEvent.h"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 typedef struct epicsThreadOSD {
25  int refcnt;
26  pthread_t tid;
27  pid_t lwpId;
28  pthread_attr_t attr;
29  struct sched_param schedParam;
32  void *createArg;
38  unsigned int osiPriority;
39  int joinable;
40  char name[1]; /* actually larger */
42 
43 LIBCOM_API pthread_t epicsThreadGetPosixThreadId(epicsThreadId id);
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif /* INC_osdThread_H */
pthread_t tid
Definition: osdThread.h:26
struct epicsThreadOSD epicsThreadOSD
void * createArg
Definition: osdThread.h:32
unsigned int osiPriority
Definition: osdThread.h:38
epicsEventId suspendEvent
Definition: osdThread.h:33
struct sched_param schedParam
Definition: osdThread.h:29
ELLNODE node
Definition: osdThread.h:24
int isRealTimeScheduled
Definition: osdThread.h:36
A doubly-linked list library.
int isEpicsThread
Definition: osdThread.h:35
LIBCOM_API pthread_t epicsThreadGetPosixThreadId(epicsThreadId id)
Definition: osdThread.c:821
List node type.
Definition: ellLib.h:45
APIs for the epicsEvent binary semaphore.
pthread_attr_t attr
Definition: osdThread.h:28
char name[1]
Definition: osdThread.h:40
EPICSTHREADFUNC createFunc
Definition: osdThread.h:31
int isOnThreadList
Definition: osdThread.h:37
LIBCOM_API int epicsThreadGetPosixPriority(epicsThreadId id)
Definition: osdThread.c:115
void(* EPICSTHREADFUNC)(void *parm)
Definition: epicsThread.h:66