This is Unofficial EPICS BASE Doxygen Site
epicsExit.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 /*epicsExit.h*/
22 #ifndef epicsExith
23 #define epicsExith
24 #include <libComAPI.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 typedef void (*epicsExitFunc)(void *arg);
35 
40 LIBCOM_API void epicsExit(int status);
47 LIBCOM_API void epicsExitLater(int status);
55 LIBCOM_API void epicsExitCallAtExits(void);
62 LIBCOM_API int epicsAtExit3(epicsExitFunc func, void *arg, const char* name);
63 
70 #define epicsAtExit(F,A) epicsAtExit3(F,A,#F)
71 
80 LIBCOM_API void epicsExitCallAtThreadExits(void);
87 LIBCOM_API int epicsAtThreadExit(epicsExitFunc func, void *arg);
88 
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif /*epicsExith*/
LIBCOM_API void epicsExit(int status)
Calls epicsExitCallAtExits(), then the OS exit() routine.
Definition: epicsExit.c:182
pvd::Status status
LIBCOM_API void epicsExitCallAtThreadExits(void)
Internal routine that runs the registered thread exit routines.
Definition: epicsExit.c:121
LIBCOM_API int epicsAtExit3(epicsExitFunc func, void *arg, const char *name)
Register a function and an associated context parameter.
Definition: epicsExit.c:166
LIBCOM_API void epicsExitLater(int status)
Arrange to call epicsExit() later from a low priority thread.
Definition: epicsExit.c:204
void(* epicsExitFunc)(void *arg)
Pointer to a callback function that is to be called by the epicsExit subsystem.
Definition: epicsExit.h:34
LIBCOM_API void epicsExitCallAtExits(void)
Internal routine that runs the registered exit routines.
Definition: epicsExit.c:102
LIBCOM_API int epicsAtThreadExit(epicsExitFunc func, void *arg)
Register a function and an context value to be run by this thread when it returns from its entry rout...
Definition: epicsExit.c:150