21.01.2015 Views

INtime® 3.1 Software - tenAsys

INtime® 3.1 Software - tenAsys

INtime® 3.1 Software - tenAsys

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix B: The iwin32 subsystem<br />

Provided for easy porting of existing code:<br />

To...<br />

iwin32 calls<br />

Allocate a memory block of the specified size. (Provides HeapAlloc<br />

the same features as malloc; provided only for<br />

compatibility.)<br />

Deallocate a memory block. (Provides the same HeapFree<br />

features as free; provided only for compatibility.)<br />

Change the size of a previously allocated memory block HeapRealloc<br />

or allocate a new one. (Provides the same features as<br />

realloc; provided only for compatibility.)<br />

Obtain the size, in bytes, of the given memory unit. HeapSize<br />

Atomically compare the Destination and<br />

InterlockedCompareExchange<br />

Comperand values and, if equal, stores the Exchange<br />

value in the address specified by Destination.<br />

Atomically compare the Destination and<br />

InterlockedCompareExchangePointer<br />

Comperand values and, if equal, stores the Exchange<br />

value in the address specified by Destination.<br />

Atomically decrements the specified variable's value InterlockedDecrement<br />

and returns the resulting value.<br />

Atomically exchanges a pair of values.<br />

InterlockedExchange<br />

Atomically compares the Increment value to the value InterlockedExchangeAdd<br />

pointed to by Addend and stores the result in the<br />

address specified by Addend.<br />

Atomically exchanges a pair of values. Prevents more than InterlockedExchangePointer<br />

one thread from simultaneously using the same variable.<br />

Atomically increments (increases by one) the value of InterlockedIncrement<br />

the specified variable and returns the resulting value.<br />

Collects log data in the same format as the Windows ReportEvent<br />

ReportEvent function, and passes it to the Windows<br />

machine for logging.<br />

Allocates contiguous memory from the current RtAllocateContiguousMemory<br />

process’s memory pool. Provided only for compatibility.<br />

Allocates locked memory from the current process’ RtAllocateLockedMemory<br />

memory pool.<br />

Convert to an integer value. (Provides the same features RtAtoi<br />

as atoi; provided only for compatibility.)<br />

Register a shutdown notification handler.<br />

RtAttachShutdownHandler<br />

Provided only for compatibility.<br />

RtCommitLockHeap<br />

Provided only for compatibility.<br />

RtCommitLockProcessHeap<br />

Provided only for compatibility.<br />

RtCommitLockStach<br />

Free memory allocated with RtAllocateContiguousMemory RtFreeContiguousMemory<br />

or RtAllocateLockedMemory.<br />

151

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!