35 #ifndef CARTOBASE_THREAD_THREAD_H 36 #define CARTOBASE_THREAD_THREAD_H 40 #ifndef CARTO_NO_THREAD 94 virtual void doRun() = 0;
static bool currentIsMainThread()
virtual bool isActive() const
virtual void setCancellable(bool value, bool callStop)
virtual void start()
Call launch(), not start()
virtual void testCancel()
virtual void launch()
This is the function which should actually called to run a thread.
virtual void run()
Call launch(), not run()
virtual void doPostLaunch()
bool isSuicideSafe() const
static void * bootstrap(void *thread)
void setSuicideSafe(bool x=true)
In suicide-safe mode, Thread can be deleted (or auto-deleted) while the threaded job is still running...
virtual void doPreLaunch()
virtual bool isCurrent() const