fix more stuff

This commit is contained in:
Lion Kortlepel authored and Anonymous275 committed 2021-03-18 23:44:14 +02:00
1 parent d360403c56
commit aec6ad9c14
8 files changed
+22 -17

No files matched your search

+4 -1
View File
@@ -7,8 +7,11 @@ class IThreaded {
public:
IThreaded()
// invokes operator() on this object
: mThread(std::thread([this] { (*this)(); })) { }
: mThread() { }
virtual void Start() final {
mThread = std::thread([this] { (*this)(); });
}
virtual void operator()() = 0;
protected: