Home | History | Annotate | Download | only in framework

Lines Matching defs:Watcher

92   // Watcher, a function object.
93 // The watcher, if set by SetWatcher(), is called every time an op is
94 // registered via the Register function. The watcher is passed the Status
96 // itself if it was successfully built. A watcher returns a Status which is in
98 typedef std::function<Status(const Status&, const OpDef&)> Watcher;
100 // An OpRegistry object has only one watcher. This interface is not thread
101 // safe, as different clients are free to set the watcher any time.
108 // Returns a non-OK status if a non-null watcher is over-written by another
109 // non-null watcher.
110 Status SetWatcher(const Watcher& watcher);
152 // Registry watcher.
153 mutable Watcher watcher_ GUARDED_BY(mu_);