#include <pthread.h>


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 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.
| 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 | |||
| ) |
Definition at line 189 of file abyss_thread_fork.c.
References addToPool(), blockSignalClass(), MALLOCVAR, NULL, removeFromPool(), and xmlrpc_asprintf().
| void ThreadExit | ( | int const | retValue | ) |
Definition at line 286 of file abyss_thread_fork.c.
| abyss_bool ThreadForks | ( | void | ) |
| void ThreadHandleSigchld | ( | pid_t const | pid | ) |
Definition at line 155 of file abyss_thread_fork.c.
References findThread(), abyss_thread::pid, abyss_thread::threadDone, and abyss_thread::userHandle.
Referenced by ServerHandleSigchld().
| abyss_bool ThreadKill | ( | TThread * | threadP | ) |
| void ThreadPoolInit | ( | void | ) |
| 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 | ) |
| abyss_bool ThreadStop | ( | TThread *const | threadP | ) |
| void ThreadUpdateStatus | ( | TThread *const | threadP | ) |
| void ThreadWaitAndRelease | ( | TThread *const | threadP | ) |
Definition at line 269 of file abyss_thread_fork.c.
References ThreadRelease().
Referenced by ConnWaitAndRelease().
1.5.6