Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions
CAS.h File Reference
#include <Ne/System/Detail/Config.h>
Include dependency graph for CAS.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _CAS   (202608L)
 
#define CasCreateEvent(event_name, listener)   EvtAddListener(event_name, listener)
 Common Application Subsystem.
 
#define CasRemoveEvent(event_name, listener)   EvtRemoveListener(event_name, listener)
 
#define CasDispatchEvent(event_name, event_data)   EvtDispatchEvent(event_name, event_data)
 

Functions

IMPORT_C VoidPtr CasAllocateHeap (SizeT sz, SInt32 flags)
 
IMPORT_C VoidPtr CasAllocateHeapII (SizeT sz, SInt32 flags, SInt32 init)
 Allocate heap block with additional parameter.
 
IMPORT_C Void CasDestroyHeap (_InOut VoidPtr, SInt32 zero_out)
 Destroy heap block.
 
IMPORT_C Void CasDestroyHeapII (_InOut VoidPtr, SInt32 zero_out, SizeT zero_out_len)
 

Macro Definition Documentation

◆ _CAS

#define _CAS   (202608L)

Definition at line 10 of file CAS.h.

◆ CasCreateEvent

#define CasCreateEvent (   event_name,
  listener 
)    EvtAddListener(event_name, listener)

Common Application Subsystem.


Note
The CAS is a user subsystem abstracting away system calls as well for performance reasons.

Definition at line 21 of file CAS.h.

◆ CasDispatchEvent

#define CasDispatchEvent (   event_name,
  event_data 
)    EvtDispatchEvent(event_name, event_data)

Definition at line 29 of file CAS.h.

◆ CasRemoveEvent

#define CasRemoveEvent (   event_name,
  listener 
)    EvtRemoveListener(event_name, listener)

Definition at line 25 of file CAS.h.

Function Documentation

◆ CasAllocateHeap()

IMPORT_C VoidPtr CasAllocateHeap ( SizeT  sz,
SInt32  flags 
)
Parameters
szsize of block.
flagsflags of block.

◆ CasAllocateHeapII()

IMPORT_C VoidPtr CasAllocateHeapII ( SizeT  sz,
SInt32  flags,
SInt32  init 
)

Allocate heap block with additional parameter.

◆ CasDestroyHeap()

IMPORT_C Void CasDestroyHeap ( _InOut  VoidPtr,
SInt32  zero_out 
)

Destroy heap block.

◆ CasDestroyHeapII()

IMPORT_C Void CasDestroyHeapII ( _InOut  VoidPtr,
SInt32  zero_out,
SizeT  zero_out_len 
)
Parameters
zero_outshall we zero-out the block after it being freed?