mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-09 01:06:25 +00:00
fix more stuff
This commit is contained in:
committed by
Anonymous275
parent
d360403c56
commit
aec6ad9c14
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user