]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/Timer.h
update sources to v12.1.1
[ceph.git] / ceph / src / common / Timer.h
index 6ac916d9e2ef49088901065e0e8a2c8d3d73c1d4..861b239ca32e12637f7fa8b1bfc1aa472ce23416 100644 (file)
@@ -17,9 +17,6 @@
 
 #include "Cond.h"
 #include "Mutex.h"
-#include "RWLock.h"
-
-#include <map>
 
 class CephContext;
 class Context;
@@ -73,8 +70,8 @@ public:
 
   /* Schedule an event in the future
    * Call with the event_lock LOCKED */
-  void add_event_after(double seconds, Context *callback);
-  void add_event_at(utime_t when, Context *callback);
+  bool add_event_after(double seconds, Context *callback);
+  bool add_event_at(utime_t when, Context *callback);
 
   /* Cancel an event.
    * Call with the event_lock LOCKED