Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

VisualizerThread.cpp

Go to the documentation of this file.
00001 #include "headers.h"
00002 
00003 //
00004 // PbVisualizerThread class
00005 // ========================
00006 //
00007 
00008 PbVisualizerThread::PbVisualizerThread(VisualizerFrame *frame)
00009         : wxThread()
00010 {
00011     m_frame = frame;
00012 
00013 } // constructor
00014 
00015 
00016 
00017 void* PbVisualizerThread::Entry()
00018 {
00019     while (true) {
00020         if (TestDestroy()) {
00021             break;
00022         }
00023         // create any type of command event here
00024         wxCommandEvent event;
00025         event.SetId(REFRESH_EVENT);
00026         event.SetEventType(wxEVT_COMMAND_ENTER);
00027 
00028         // send in a thread-safe way
00029         wxPostEvent( m_frame, event );
00030 
00031         this->Sleep(2000);
00032     }
00033 
00034     return NULL;
00035 
00036 } // Entry()
00037 
00038 
00039 
00040 void PbVisualizerThread::OnExit()
00041 {
00042 } // OnExit()

Generated at Thu Jul 11 13:31:53 2002 for Peekabooty by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001