12345678910111213141516171819202122232425262728293031323334353637 |
- #ifndef TOOLS_ANDROID_FORWARDER2_PIPE_NOTIFIER_H_
- #define TOOLS_ANDROID_FORWARDER2_PIPE_NOTIFIER_H_
- #include "base/macros.h"
- namespace forwarder2 {
- class PipeNotifier {
- public:
- PipeNotifier();
- ~PipeNotifier();
- bool Notify();
- int receiver_fd() const { return receiver_fd_; }
- void Reset();
- private:
- int sender_fd_;
- int receiver_fd_;
- DISALLOW_COPY_AND_ASSIGN(PipeNotifier);
- };
- }
- #endif
|