diff options
author | Arne H Juul <arnej@yahoo-inc.com> | 2017-05-02 11:05:57 +0200 |
---|---|---|
committer | Arne H Juul <arnej@yahoo-inc.com> | 2017-05-02 11:09:00 +0200 |
commit | c62a40b368c3f87f2af75038974961e83a48a779 (patch) | |
tree | 557a2e2241ef5d19d4236067dd3c05a868752b7a /vespalog/src/test/threads | |
parent | c638dea6f73bb3b250326f2c386b18a2120abfc3 (diff) |
misc cleanup from Baldersheim
* include file cleanup
* only do LOG_SETUP as needed
* remove "virtual" where "override" is specified also
* some minor reformatting and indentation changes
Diffstat (limited to 'vespalog/src/test/threads')
-rw-r--r-- | vespalog/src/test/threads/testthreads.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/vespalog/src/test/threads/testthreads.cpp b/vespalog/src/test/threads/testthreads.cpp index 515fa10c11f..a708777f350 100644 --- a/vespalog/src/test/threads/testthreads.cpp +++ b/vespalog/src/test/threads/testthreads.cpp @@ -1,8 +1,8 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> +#include <vespa/fastos/app.h> +#include <vespa/fastos/time.h> #include <vespa/log/log.h> #include <iostream> -#include <string> using std::string; @@ -15,7 +15,7 @@ class FileThread : public FastOS_Runnable string _file; public: FileThread(string file) : _done(false), _file(file) {} - virtual void Run(FastOS_ThreadInterface *thread, void *arg) override; + void Run(FastOS_ThreadInterface *thread, void *arg) override; void stop() {_done = true; } }; @@ -25,13 +25,10 @@ class LoggerThread : public FastOS_Runnable public: bool _useLogBuffer; LoggerThread() : _done(false), _useLogBuffer(false) {} - virtual void Run(FastOS_ThreadInterface *thread, void *arg) override; + void Run(FastOS_ThreadInterface *thread, void *arg) override; void stop() {_done = true; } }; - - - void FileThread::Run(FastOS_ThreadInterface *, void *) { |