ReactOS  0.4.15-dev-2103-g9dff498
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 }
void(__cdecl * _PVFV)(void)
Definition: internal.h:33
POINT last
Definition: font.c:46
#define free
Definition: debug_ros.c:5
const GLint * first
Definition: glext.h:5794
_PVFV * __onexitbegin
Definition: atonexit.c:23
_PVFV * __onexitend
Definition: atonexit.c:24
#define NULL
Definition: types.h:112
void *__cdecl _decode_pointer(void *)
Definition: mingw_helpers.c:19

Referenced by _cexit().

Variable Documentation

◆ atexit_registered

int atexit_registered

◆ atexit_table

_onexit_t* atexit_table

◆ atexit_table_size

int atexit_table_size