MyJoinableThread Class Reference

Inheritance diagram for MyJoinableThread:

wxThread List of all members.

Detailed Description

Definition at line 192 of file console_socket.cpp.

Public Member Functions

Private Attributes


Constructor & Destructor Documentation

MyJoinableThread::MyJoinableThread ( size_t  n  )  [inline]

Definition at line 195 of file console_socket.cpp.

References m_n.

00195                                : wxThread(wxTHREAD_JOINABLE)
00196         { m_n = n; Create(); }


Member Function Documentation

wxThread::ExitCode MyJoinableThread::Entry (  )  [virtual]

Definition at line 205 of file console_socket.cpp.

References m_n.

00206 {
00207     unsigned long res = 1;
00208     for ( size_t n = 1; n < m_n; n++ )
00209     {
00210         res *= n;
00211 
00212         // it's a loooong calculation :-)
00213         Sleep(100);
00214     }
00215 
00216     return (ExitCode)res;
00217 }


Member Data Documentation

size_t MyJoinableThread::m_n [private]

Definition at line 202 of file console_socket.cpp.

Referenced by Entry(), and MyJoinableThread().


The documentation for this class was generated from the following file:
Generated on Wed Feb 28 19:49:32 2007 for Tesseract by  doxygen 1.5.1