summaryrefslogtreecommitdiff
path: root/src/mongo/util/periodic_runner.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/periodic_runner.h')
-rw-r--r--src/mongo/util/periodic_runner.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/util/periodic_runner.h b/src/mongo/util/periodic_runner.h
index 21e37d0e438..6b80226aa55 100644
--- a/src/mongo/util/periodic_runner.h
+++ b/src/mongo/util/periodic_runner.h
@@ -34,6 +34,8 @@
namespace mongo {
+class Client;
+
/**
* An interface for objects that run work items at specified intervals.
*
@@ -41,10 +43,12 @@ namespace mongo {
* model they wish. Implementations may choose when to stop running
* scheduled jobs (for example, some implementations may stop running
* when the server is in global shutdown).
+ *
+ * The runner will create client objects that it passes to jobs to use.
*/
class PeriodicRunner {
public:
- using Job = stdx::function<void()>;
+ using Job = stdx::function<void(Client* client)>;
struct PeriodicJob {
PeriodicJob(Job callable, Milliseconds period)