Mixe for Privacy and Anonymity in the Internet
|
#include <CAThreadList.hpp>
Public Member Functions | |
CAThreadList () | |
~CAThreadList () | |
SINT32 | put (const CAThread *const thread) |
SINT32 | remove (const CAThread *const thread) |
SINT32 | waitAndRemoveAll () |
Waits for finishing of all threads in list and removes them. More... | |
void | showAll () const |
UINT32 | getSize () const |
Private Member Functions | |
void | removeAll () |
Private Attributes | |
UINT32 | m_Size |
thread_list_entry_t * | m_pHead |
CAMutex * | m_pListLock |
Definition at line 44 of file CAThreadList.hpp.
CAThreadList::CAThreadList | ( | ) |
Definition at line 40 of file CAThreadList.cpp.
References m_pHead, m_pListLock, and m_Size.
CAThreadList::~CAThreadList | ( | ) |
Definition at line 47 of file CAThreadList.cpp.
References CAMutex::lock(), m_pListLock, removeAll(), and CAMutex::unlock().
|
inline |
Definition at line 59 of file CAThreadList.cpp.
References E_SUCCESS, CAMutex::lock(), m_pHead, m_pListLock, m_Size, thread_list_entry::tle_next, thread_list_entry::tle_thread, and CAMutex::unlock().
Referenced by CACryptoBenchmark::doBenchmark().
Definition at line 73 of file CAThreadList.cpp.
References E_SUCCESS, CAThread::getID(), CAMutex::lock(), m_pHead, m_pListLock, m_Size, thread_list_entry::tle_next, thread_list_entry::tle_thread, and CAMutex::unlock().
|
private |
Definition at line 152 of file CAThreadList.cpp.
References CAThread::getID(), CAThread::getName(), m_pHead, m_Size, CAMsg::printMsg(), thread_list_entry::tle_next, and thread_list_entry::tle_thread.
Referenced by ~CAThreadList().
void CAThreadList::showAll | ( | ) | const |
Definition at line 129 of file CAThreadList.cpp.
References CAThread::getID(), CAThread::getName(), CAMutex::lock(), m_pHead, m_pListLock, CAMsg::printMsg(), thread_list_entry::tle_next, thread_list_entry::tle_thread, and CAMutex::unlock().
SINT32 CAThreadList::waitAndRemoveAll | ( | ) |
Waits for finishing of all threads in list and removes them.
The memory of each CAThread object is freed.
Definition at line 172 of file CAThreadList.cpp.
References E_SUCCESS, CAThread::getID(), CAThread::getName(), CAThread::join(), m_pHead, m_Size, CAMsg::printMsg(), thread_list_entry::tle_next, and thread_list_entry::tle_thread.
Referenced by CACryptoBenchmark::doBenchmark().
|
private |
Definition at line 70 of file CAThreadList.hpp.
Referenced by CAThreadList(), put(), remove(), removeAll(), showAll(), and waitAndRemoveAll().
|
private |
Definition at line 71 of file CAThreadList.hpp.
Referenced by CAThreadList(), put(), remove(), showAll(), and ~CAThreadList().
|
private |
Definition at line 69 of file CAThreadList.hpp.
Referenced by CAThreadList(), getSize(), put(), remove(), removeAll(), and waitAndRemoveAll().