ReactOS 0.4.15-dev-7958-gcd0bb1a
atexit.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOCK_EXIT   _mlock(_EXIT_LOCK1)
 
#define UNLOCK_EXIT   _munlock(_EXIT_LOCK1)
 

Functions

void __call_atexit (void)
 

Variables

_onexit_tatexit_table
 
int atexit_table_size
 
int atexit_registered
 

Macro Definition Documentation

◆ LOCK_EXIT

#define LOCK_EXIT   _mlock(_EXIT_LOCK1)

Definition at line 8 of file atexit.h.

◆ UNLOCK_EXIT

#define UNLOCK_EXIT   _munlock(_EXIT_LOCK1)

Definition at line 9 of file atexit.h.

Function Documentation

◆ __call_atexit()

void __call_atexit ( void  )

Definition at line 30 of file atonexit.c.

31{
32 /* Note: should only be called with the exit lock held */
33 _PVFV *first, *last;
34
35 if (!__onexitbegin)
36 return;
37
40
41 while (--last >= first)
42 if (*last)
43 (**last)();
44
45 free(first);
46
48}
_PVFV * __onexitend
Definition: atonexit.c:24
_PVFV * __onexitbegin
Definition: atonexit.c:23
#define free
Definition: debug_ros.c:5
#define NULL
Definition: types.h:112
const GLint * first
Definition: glext.h:5794
static UINT UINT last
Definition: font.c:45
void *__cdecl _decode_pointer(void *)
Definition: mingw_helpers.c:19
void(__cdecl * _PVFV)(void)
Definition: internal.h:33

Referenced by _cexit().

Variable Documentation

◆ atexit_registered

int atexit_registered
extern

◆ atexit_table

_onexit_t* atexit_table
extern

◆ atexit_table_size

int atexit_table_size
extern