![]() |
This is Unofficial EPICS BASE Doxygen Site
|
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include "ellLib.h"
#include "errlog.h"
#include "epicsThread.h"
#include "epicsMutex.h"
#include "cantProceed.h"
#include "epicsExit.h"
#include "epicsExport.h"
Go to the source code of this file.
Classes | |
struct | exitNode |
struct | exitPvt |
Typedefs | |
typedef struct exitNode | exitNode |
typedef struct exitPvt | exitPvt |
Functions | |
void | epicsMutexCleanup (void) |
LIBCOM_API void | epicsExitCallAtExits (void) |
Internal routine that runs the registered exit routines. More... | |
LIBCOM_API void | epicsExitCallAtThreadExits (void) |
Internal routine that runs the registered thread exit routines. More... | |
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 routine. More... | |
LIBCOM_API int | epicsAtExit3 (epicsExitFunc func, void *arg, const char *name) |
Register a function and an associated context parameter. More... | |
LIBCOM_API void | epicsExit (int status) |
Calls epicsExitCallAtExits(), then the OS exit() routine. More... | |
LIBCOM_API void | epicsExitLater (int status) |
Arrange to call epicsExit() later from a low priority thread. More... | |
epicsExportAddress (int, atExitDebug) | |
Variables | |
int | atExitDebug = 0 |
LIBCOM_API int epicsAtExit3 | ( | epicsExitFunc | func, |
void * | arg, | ||
const char * | name | ||
) |
Register a function and an associated context parameter.
func | Function to be called when epicsExitCallAtExits is invoked. |
arg | Context parameter for the function. |
name | Function name |
Definition at line 166 of file epicsExit.c.
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 routine.
func | Function be called at thread completion. |
arg | Context parameter for the function. |
Definition at line 150 of file epicsExit.c.
LIBCOM_API void epicsExit | ( | int | status | ) |
Calls epicsExitCallAtExits(), then the OS exit() routine.
status | Passed to exit() |
Definition at line 182 of file epicsExit.c.
LIBCOM_API void epicsExitCallAtExits | ( | void | ) |
Internal routine that runs the registered exit routines.
Calls each of the functions registered by prior calls to epicsAtExit in reverse order of their registration.
Definition at line 102 of file epicsExit.c.
LIBCOM_API void epicsExitCallAtThreadExits | ( | void | ) |
Internal routine that runs the registered thread exit routines.
Calls each of the functions that were registered in the current thread by calling epicsAtThreadExit(), in reverse order of their registration.
Definition at line 121 of file epicsExit.c.
LIBCOM_API void epicsExitLater | ( | int | status | ) |
Arrange to call epicsExit() later from a low priority thread.
This delays the actual call to exit() so it doesn't run in this thread.
status | Passed to exit() |
Definition at line 204 of file epicsExit.c.
epicsExportAddress | ( | int | , |
atExitDebug | |||
) |
void epicsMutexCleanup | ( | void | ) |
Definition at line 176 of file epicsMutex.cpp.
int atExitDebug = 0 |
Definition at line 50 of file epicsExit.c.