#include <torrentwrapper.h>
Inherits Thread.

Public Member Functions | |
| TorrentMaintenanceThread (TorrentWrapper *parent) | |
| void | Init () |
| void | Stop () |
| void * | Entry () |
| ExitCode | Wait () |
| overrides wxThread::Wait . Wakes up from sleep if sleeping, to prevent delay. | |
| bool | Sleep (int milliseconds) |
| returns false when woken up | |
| void | WakeUp () |
| call this from outside thread to wake up Sleep - ing thread | |
| wxThreadError | Run () |
Protected Member Functions | |
| bool | TestDestroy () |
| overrides wxThread::TestDestroy , which can fail on Wait | |
Protected Attributes | |
| bool | m_stop_thread |
| TorrentWrapper & | m_parent |
| wxSemaphore | m_thread_sleep_semaphore |
| bool | m_must_exit |
| workaround for old wxWidgets bug | |
Definition at line 58 of file torrentwrapper.h.
| TorrentMaintenanceThread::TorrentMaintenanceThread | ( | TorrentWrapper * | parent | ) |
Definition at line 101 of file torrentwrapper.cpp.
| void * TorrentMaintenanceThread::Entry | ( | ) |
Definition at line 119 of file torrentwrapper.cpp.
| void TorrentMaintenanceThread::Init | ( | ) |
Definition at line 107 of file torrentwrapper.cpp.
| wxThreadError Thread::Run | ( | ) | [inherited] |
Definition at line 100 of file thread.cpp.
| bool Thread::Sleep | ( | int | milliseconds | ) | [inherited] |
returns false when woken up
Definition at line 85 of file thread.cpp.
| void TorrentMaintenanceThread::Stop | ( | ) |
Definition at line 114 of file torrentwrapper.cpp.
| bool TorrentMaintenanceThread::TestDestroy | ( | ) | [protected] |
overrides wxThread::TestDestroy , which can fail on Wait
Reimplemented from Thread.
Definition at line 139 of file torrentwrapper.cpp.
| Thread::ExitCode Thread::Wait | ( | ) | [inherited] |
overrides wxThread::Wait . Wakes up from sleep if sleeping, to prevent delay.
Definition at line 94 of file thread.cpp.
| void Thread::WakeUp | ( | ) | [inherited] |
call this from outside thread to wake up Sleep - ing thread
Definition at line 90 of file thread.cpp.
bool Thread::m_must_exit [protected, inherited] |
TorrentWrapper& TorrentMaintenanceThread::m_parent [protected] |
Definition at line 70 of file torrentwrapper.h.
bool TorrentMaintenanceThread::m_stop_thread [protected] |
Definition at line 69 of file torrentwrapper.h.
wxSemaphore Thread::m_thread_sleep_semaphore [protected, inherited] |
1.6.3