Mixes for Privacy and Anonymity in the Internet
|
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 |
CAThreadList::CAThreadList | ( | ) |
References m_pHead, m_pListLock, and m_Size.
CAThreadList::~CAThreadList | ( | ) |
References CAMutex::lock(), m_pListLock, removeAll(), and CAMutex::unlock().
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().
|
private |
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 |
SINT32 CAThreadList::waitAndRemoveAll | ( | ) |
Waits for finishing of all threads in list and removes them.
The memory of each CAThread object is freed.
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 |
Referenced by CAThreadList(), put(), remove(), removeAll(), showAll(), and waitAndRemoveAll().
|
private |
Referenced by CAThreadList(), put(), remove(), showAll(), and ~CAThreadList().
|
private |
Referenced by CAThreadList(), getSize(), put(), remove(), removeAll(), and waitAndRemoveAll().