G:/ScriptBasic/source/hndlptr.c File Reference

#include <stdlib.h>
#include "myalloc.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  _HandleArray

Defines

#define ARRAY_INCREMENT   100

Typedefs

typedef _HandleArray HandleArray
typedef _HandleArraypHandleArray

Functions

unsigned long handle_GetHandle (void **pHandle, void *pMEM, void *pointer)
void * handle_GetPointer (void **pHandle, unsigned long handle)
void handle_FreeHandle (void **pHandle, unsigned long handle)
void handle_DestroyHandleArray (void **pHandle, void *pMEM)


Define Documentation

#define ARRAY_INCREMENT   100
 

Definition at line 61 of file hndlptr.c.

Referenced by handle_GetHandle().


Typedef Documentation

typedef struct _HandleArray HandleArray
 

typedef struct _HandleArray* pHandleArray
 


Function Documentation

void handle_DestroyHandleArray void **  pHandle,
void *  pMEM
 

Definition at line 205 of file hndlptr.c.

References alloc_Free(), NULL, q, and thread_FinishMutex().

Referenced by modu_Init().

void handle_FreeHandle void **  pHandle,
unsigned long  handle
 

Definition at line 178 of file hndlptr.c.

References NULL, q, thread_LockMutex(), and thread_UnlockMutex().

Referenced by modu_Init().

unsigned long handle_GetHandle void **  pHandle,
void *  pMEM,
void *  pointer
 

Definition at line 80 of file hndlptr.c.

References alloc_Alloc(), alloc_Free(), ARRAY_INCREMENT, i, memcpy(), memset(), NULL, q, thread_InitMutex(), and thread_LockMutex().

Referenced by modu_Init().

void* handle_GetPointer void **  pHandle,
unsigned long  handle
 

Definition at line 145 of file hndlptr.c.

References NULL, q, thread_LockMutex(), and thread_UnlockMutex().

Referenced by modu_Init().


Generated on Sun Mar 12 23:56:37 2006 for ScriptBasic by  doxygen 1.4.6-NO