Add override keyword to DummyThreadPool methods

This commit is contained in:
sfc-gh-tclinkenbeard 2021-01-22 13:19:19 -08:00
parent 8d0f9e1ac8
commit 5f96c4b721

View File

@ -114,11 +114,11 @@ public:
~DummyThreadPool() {}
DummyThreadPool() : thread(nullptr) {}
Future<Void> getError() const override { return errors.getFuture(); }
void addThread( IThreadPoolReceiver* userData ) {
void addThread(IThreadPoolReceiver* userData) override {
ASSERT( !thread );
thread = userData;
}
void post( PThreadAction action ) {
void post(PThreadAction action) override {
try {
(*action)( thread );
} catch (Error& e) {
@ -127,15 +127,9 @@ public:
errors.sendError( unknown_error() );
}
}
Future<Void> stop(Error const& e) {
return Void();
}
void addref() {
ReferenceCounted<DummyThreadPool>::addref();
}
void delref() {
ReferenceCounted<DummyThreadPool>::delref();
}
Future<Void> stop(Error const& e) override { return Void(); }
void addref() override { ReferenceCounted<DummyThreadPool>::addref(); }
void delref() override { ReferenceCounted<DummyThreadPool>::delref(); }
private:
IThreadPoolReceiver* thread;