Inheritance diagram for MySemaphoreThread:

Definition at line 548 of file console_socket.cpp.
| MySemaphoreThread::MySemaphoreThread | ( | int | i, | |
| wxSemaphore * | sem | |||
| ) |  [inline] | 
| virtual ExitCode MySemaphoreThread::Entry | ( | ) |  [inline, virtual] | 
Definition at line 559 of file console_socket.cpp.
00560 { 00561 wxPrintf(_T("%s: Thread #%d (%ld) starting to wait for semaphore...\n"), 00562 wxDateTime::Now().FormatTime().c_str(), m_i, (long)GetId()); 00563 00564 m_sem->Wait(); 00565 00566 wxPrintf(_T("%s: Thread #%d (%ld) acquired the semaphore.\n"), 00567 wxDateTime::Now().FormatTime().c_str(), m_i, (long)GetId()); 00568 00569 Sleep(1000); 00570 00571 wxPrintf(_T("%s: Thread #%d (%ld) releasing the semaphore.\n"), 00572 wxDateTime::Now().FormatTime().c_str(), m_i, (long)GetId()); 00573 00574 m_sem->Post(); 00575 00576 return 0; 00577 }
| int MySemaphoreThread::m_i  [private] | 
| wxSemaphore* MySemaphoreThread::m_sem  [private] | 
 1.5.1
 1.5.1