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 osdThreadh
10 #define osdThreadh
11 
12 #include <pthread.h>
13 
14 #include "libComAPI.h"
15 #include "ellLib.h"
16 #include "epicsEvent.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 typedef struct epicsThreadOSD {
23  ELLNODE node;
24  int refcnt;
25  pthread_t tid;
26  pthread_attr_t attr;
27  struct sched_param schedParam;
28  int schedPolicy;
30  void *createArg;
32  int isSuspended;
33  int isEpicsThread;
35  int isOnThreadList;
36  unsigned int osiPriority;
37  int joinable;
38  char name[1]; /* actually larger */
40 
41 LIBCOM_API pthread_t epicsThreadGetPosixThreadId(epicsThreadId id);
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /* osdThreadh */
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