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

#include "thread.h"

Go to the source code of this file.

Functions

int thread_CreateThread (PTHREADHANDLE pThread, void *pStartFunction, void *pThreadParameter)
void thread_ExitThread ()
void thread_InitMutex (PMUTEX pMutex)
void thread_FinishMutex (PMUTEX pMutex)
void thread_LockMutex (PMUTEX pMutex)
void thread_UnlockMutex (PMUTEX pMutex)
void shared_InitLock (PSHAREDLOCK p)
void shared_FinishLock (PSHAREDLOCK p)
void shared_LockRead (PSHAREDLOCK p)
void shared_LockWrite (PSHAREDLOCK p)
void shared_UnlockRead (PSHAREDLOCK p)
void shared_UnlockWrite (PSHAREDLOCK p)


Function Documentation

void shared_FinishLock PSHAREDLOCK  p  ) 
 

Definition at line 296 of file thread.c.

References thread_FinishMutex().

Referenced by modu_Init().

void shared_InitLock PSHAREDLOCK  p  ) 
 

Definition at line 281 of file thread.c.

References thread_InitMutex().

Referenced by modu_Init().

void shared_LockRead PSHAREDLOCK  p  ) 
 

Definition at line 310 of file thread.c.

References thread_LockMutex(), and thread_UnlockMutex().

Referenced by modu_Init().

void shared_LockWrite PSHAREDLOCK  p  ) 
 

Definition at line 330 of file thread.c.

References thread_LockMutex(), and thread_UnlockMutex().

Referenced by modu_Init().

void shared_UnlockRead PSHAREDLOCK  p  ) 
 

Definition at line 344 of file thread.c.

References thread_LockMutex(), and thread_UnlockMutex().

Referenced by modu_Init().

void shared_UnlockWrite PSHAREDLOCK  p  ) 
 

Definition at line 362 of file thread.c.

References thread_UnlockMutex().

Referenced by modu_Init().

int thread_CreateThread PTHREADHANDLE  pThread,
void *  pStartFunction,
void *  pThreadParameter
 

Definition at line 65 of file thread.c.

References CloseHandle(), i, and NULL.

Referenced by AppStart(), ExecuteProgram(), log_init(), and modu_Init().

void thread_ExitThread  ) 
 

Definition at line 113 of file thread.c.

References NULL.

Referenced by FinishConnection(), and modu_Init().

void thread_FinishMutex PMUTEX  pMutex  ) 
 

Definition at line 161 of file thread.c.

References CloseHandle().

Referenced by alloc_FinishSegment(), handle_DestroyHandleArray(), modu_Init(), and shared_FinishLock().

void thread_InitMutex PMUTEX  pMutex  ) 
 

Definition at line 138 of file thread.c.

References NULL.

Referenced by alloc_GlobalUseGlobalMutex(), alloc_InitSegment(), alloc_InitStat(), AppStart(), handle_GetHandle(), log_init(), modu_Init(), scriba_InitModuleInterface(), and shared_InitLock().

void thread_LockMutex PMUTEX  pMutex  ) 
 

Definition at line 184 of file thread.c.

Referenced by alloc_InitSegment(), alloc_Merge(), GetFreeThread(), GuardThread(), handle_FreeHandle(), handle_GetHandle(), handle_GetPointer(), log_init(), log_printf(), log_shutdown(), log_state(), log_thread(), main(), modu_Init(), modu_UnloadAllModules(), modu_UnloadModule(), ReleaseThreadData(), scriba_ShutdownMtModules(), shared_LockRead(), shared_LockWrite(), and shared_UnlockRead().

void thread_UnlockMutex PMUTEX  pMutex  ) 
 

Definition at line 208 of file thread.c.

References NULL.

Referenced by alloc_InitSegment(), alloc_Merge(), GetFreeThread(), GuardThread(), handle_FreeHandle(), handle_GetPointer(), log_printf(), log_shutdown(), log_state(), log_thread(), main(), modu_Init(), modu_UnloadAllModules(), modu_UnloadModule(), ReleaseThreadData(), scriba_ShutdownMtModules(), shared_LockRead(), shared_LockWrite(), shared_UnlockRead(), and shared_UnlockWrite().


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