| 312 | |
| 313 | // Lexically scoped handle for Ref. |
| 314 | class Handle { |
| 315 | public: |
| 316 | explicit Handle(CollectiveExecutor* ce, bool inherit_ref) : ce_(ce) { |
| 317 | if (!inherit_ref) ce->Ref(); |
| 318 | } |
| 319 | ~Handle() { ce_->Unref(); } |
| 320 | CollectiveExecutor* get() const { return ce_; } |
| 321 | |
| 322 | private: |
| 323 | CollectiveExecutor* ce_; |
| 324 | }; |
| 325 | |
| 326 | protected: |
| 327 | explicit CollectiveExecutor(CollectiveExecutorMgrInterface* cem) |
no outgoing calls
no test coverage detected