TorrentMaintenanceThread Class Reference

#include <torrentwrapper.h>

Inherits Thread.

Collaboration diagram for TorrentMaintenanceThread:
Collaboration graph
[legend]

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
TorrentWrapperm_parent
wxSemaphore m_thread_sleep_semaphore
bool m_must_exit
 workaround for old wxWidgets bug

Detailed Description

Definition at line 58 of file torrentwrapper.h.


Constructor & Destructor Documentation

TorrentMaintenanceThread::TorrentMaintenanceThread ( TorrentWrapper parent  ) 

Definition at line 101 of file torrentwrapper.cpp.


Member Function Documentation

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.


Field Documentation

bool Thread::m_must_exit [protected, inherited]

workaround for old wxWidgets bug

Definition at line 60 of file thread.h.

Definition at line 70 of file torrentwrapper.h.

Definition at line 69 of file torrentwrapper.h.

wxSemaphore Thread::m_thread_sleep_semaphore [protected, inherited]

Definition at line 58 of file thread.h.


The documentation for this class was generated from the following files:

Generated on Thu Dec 29 00:11:49 2011 for SpringLobby by doxygen 1.6.3