X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e51726bcb1904bf8422b62798bd9f0cd2efb53ad..e5a909e610fcd24a0bb6d7b1a586a14cd9767512:/lib/base/thread.h diff --git a/lib/base/thread.h b/lib/base/thread.h index dad80424..819c51fe 100644 --- a/lib/base/thread.h +++ b/lib/base/thread.h @@ -29,6 +29,11 @@ public: eThread(); virtual ~eThread(); + /* thread_finished is called from within the thread context as the last function + before the thread is going to die. + It should be used to do final cleanups (unlock locked mutexes ....) */ + virtual void thread_finished() {} + /* runAsync starts the thread. it assumes that the thread is not running, i.e. sync() *must* return 0.