Igor Canadi 10 years ago
parent add22e3515
commit 04ce1b25f3
  1. 6
      db/write_controller.h

@ -47,7 +47,7 @@ class WriteControllerToken {
public: public:
explicit WriteControllerToken(WriteController* controller) explicit WriteControllerToken(WriteController* controller)
: controller_(controller) {} : controller_(controller) {}
virtual ~WriteControllerToken() = default; virtual ~WriteControllerToken() {}
protected: protected:
WriteController* controller_; WriteController* controller_;
@ -62,14 +62,14 @@ class StopWriteToken : public WriteControllerToken {
public: public:
explicit StopWriteToken(WriteController* controller) explicit StopWriteToken(WriteController* controller)
: WriteControllerToken(controller) {} : WriteControllerToken(controller) {}
~StopWriteToken(); virtual ~StopWriteToken();
}; };
class DelayWriteToken : public WriteControllerToken { class DelayWriteToken : public WriteControllerToken {
public: public:
DelayWriteToken(WriteController* controller, uint64_t delay_us) DelayWriteToken(WriteController* controller, uint64_t delay_us)
: WriteControllerToken(controller), delay_us_(delay_us) {} : WriteControllerToken(controller), delay_us_(delay_us) {}
~DelayWriteToken(); virtual ~DelayWriteToken();
private: private:
uint64_t delay_us_; uint64_t delay_us_;

Loading…
Cancel
Save