abyss_thread.h File Reference

#include <pthread.h>

Include dependency graph for abyss_thread.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef pthread_mutex_t TMutex
typedef struct abyss_thread TThread
typedef void TThreadDoneFn (void *const userHandleP)
typedef void TThreadProc (void *const userHandleP)

Functions

abyss_bool MutexCreate (TMutex *m)
void MutexFree (TMutex *m)
abyss_bool MutexLock (TMutex *m)
abyss_bool MutexTryLock (TMutex *m)
abyss_bool MutexUnlock (TMutex *m)
void ThreadCreate (TThread **const threadPP, void *const userHandle, TThreadProc *const func, TThreadDoneFn *const threadDone, abyss_bool const useSigchld, const char **const errorP)
void ThreadExit (int const retValue)
abyss_bool ThreadForks (void)
void ThreadHandleSigchld (pid_t const pid)
abyss_bool ThreadKill (TThread *threadP)
void ThreadPoolInit (void)
void ThreadRelease (TThread *const threadP)
abyss_bool ThreadRun (TThread *const threadP)
abyss_bool ThreadStop (TThread *const threadP)
void ThreadUpdateStatus (TThread *const threadP)
void ThreadWaitAndRelease (TThread *const threadP)


Typedef Documentation

typedef pthread_mutex_t TMutex

Definition at line 61 of file abyss_thread.h.

typedef struct abyss_thread TThread

Definition at line 8 of file abyss_thread.h.

typedef void TThreadDoneFn(void *const userHandleP)

Definition at line 14 of file abyss_thread.h.

typedef void TThreadProc(void *const userHandleP)

Definition at line 13 of file abyss_thread.h.


Function Documentation

abyss_bool MutexCreate ( TMutex m  ) 

void MutexFree ( TMutex m  ) 

abyss_bool MutexLock ( TMutex m  ) 

abyss_bool MutexTryLock ( TMutex m  ) 

abyss_bool MutexUnlock ( TMutex m  ) 

void ThreadCreate ( TThread **const   threadPP,
void *const   userHandle,
TThreadProc *const   func,
TThreadDoneFn *const   threadDone,
abyss_bool const   useSigchld,
const char **const   errorP 
)

void ThreadExit ( int const   retValue  ) 

Definition at line 286 of file abyss_thread_fork.c.

abyss_bool ThreadForks ( void   ) 

Definition at line 311 of file abyss_thread_fork.c.

References TRUE.

void ThreadHandleSigchld ( pid_t const   pid  ) 

abyss_bool ThreadKill ( TThread threadP  ) 

Definition at line 262 of file abyss_thread_fork.c.

References TRUE.

void ThreadPoolInit ( void   ) 

Definition at line 97 of file abyss_thread_fork.c.

References NULL, and ThreadPool.

void ThreadRelease ( TThread *const   threadP  ) 

Definition at line 302 of file abyss_thread_fork.c.

References removeFromPool().

Referenced by ThreadWaitAndRelease().

abyss_bool ThreadRun ( TThread *const   threadP  ) 

Definition at line 248 of file abyss_thread_fork.c.

References TRUE.

abyss_bool ThreadStop ( TThread *const   threadP  ) 

Definition at line 255 of file abyss_thread_fork.c.

References TRUE.

void ThreadUpdateStatus ( TThread *const   threadP  ) 

Definition at line 173 of file abyss_thread_fork.c.

Referenced by freeFinishedConns().

void ThreadWaitAndRelease ( TThread *const   threadP  ) 

Definition at line 269 of file abyss_thread_fork.c.

References ThreadRelease().

Referenced by ConnWaitAndRelease().


Generated on Thu May 17 10:00:33 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6