| 1 |
#ifndef CSJOINABLETHREAD_H |
| 2 |
#define CSJOINABLETHREAD_H |
| 3 |
|
| 4 |
#include "clJoinableThread.h" |
| 5 |
#include "codelite_exports.h" |
| 6 |
#include <wx/thread.h> |
| 7 |
class WXDLLIMPEXP_CL clJoinableThread : public wxThread |
| 8 |
{ |
| 9 |
protected: |
| 10 |
void Stop(); |
| 11 |
|
| 12 |
public: |
| 13 |
clJoinableThread(); |
| 14 |
virtual ~clJoinableThread(); |
| 15 |
|
| 16 |
/** |
| 17 |
* Start the thread as joinable thread. |
| 18 |
* This call must be called from the context of other thread (e.g. main thread) |
| 19 |
*/ |
| 20 |
void Start(int priority = WXTHREAD_DEFAULT_PRIORITY); |
| 21 |
}; |
| 22 |
|
| 23 |
#endif // CSJOINABLETHREAD_H |