Debian Codegraph @

codelite-cli/csJoinableThread.h

raw
1 #ifndef CSJOINABLETHREAD_H
2 #define CSJOINABLETHREAD_H
3
4 #include "csJoinableThread.h"
5 #include <cl_command_event.h>
6 #include <wx/event.h>
7
8 wxDECLARE_EVENT(wxEVT_THREAD_GOING_DOWN, clCommandEvent);
9 class csJoinableThread : public wxThread
10 {
11 protected:
12 wxEvtHandler* m_manager;
13
14 protected:
15 void Stop();
16 void NotifyGoingDown();
17
18 public:
19 csJoinableThread(wxEvtHandler* manager);
20 virtual ~csJoinableThread();
21
22 /**
23 * Start the thread as joinable thread.
24 * This call must be called from the context of other thread (e.g. main thread)
25 */
26 void Start(int priority = WXTHREAD_DEFAULT_PRIORITY);
27 };
28
29 #endif // CSJOINABLETHREAD_H