21 #include <sys/syscall.h> 22 #include <sys/types.h> 23 #include <sys/prctl.h> 34 "LWP ID OSIPRI OSSPRI STATE\n");
36 struct sched_param param;
39 if (pthreadInfo->
tid) {
41 int status = pthread_getschedparam(pthreadInfo->
tid, &policy,
45 priority = param.sched_priority;
48 pthreadInfo->
name,(
void *)
49 pthreadInfo,(
unsigned long)pthreadInfo->
lwpId,
60 if (strcmp(pthreadInfo->
name,
"_main_")) {
62 prctl(PR_SET_NAME, comm, 0l, 0l, 0l);
64 pthreadInfo->
lwpId = syscall(SYS_gettid);
void(* EPICS_THREAD_HOOK_ROUTINE)(epicsThreadId id)
A doubly-linked list library.
FILE *epicsStdCall epicsGetStdout(void)
APIs for the epicsEvent binary semaphore.
int snprintf(char *str, size_t size, const char *format,...)
C++ and C descriptions for a thread.