diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdbsupport/event-pipe.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdbsupport/event-pipe.h')
-rw-r--r-- | gdbsupport/event-pipe.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gdbsupport/event-pipe.h b/gdbsupport/event-pipe.h index 999dd4b..a6e2a6a 100644 --- a/gdbsupport/event-pipe.h +++ b/gdbsupport/event-pipe.h @@ -28,8 +28,8 @@ class event_pipe { public: - event_pipe() = default; - ~event_pipe(); + event_pipe () = default; + ~event_pipe (); DISABLE_COPY_AND_ASSIGN (event_pipe); @@ -40,19 +40,18 @@ public: void close_pipe (); /* True if the event pipe has been opened. */ - bool is_open () const - { return m_fds[0] != -1; } + bool is_open () const { return m_fds[0] != -1; } /* The file descriptor of the waitable file to use in the event loop. */ - int event_fd () const - { return m_fds[0]; } + int event_fd () const { return m_fds[0]; } /* Flush the event pipe. */ void flush (); /* Put something in the pipe, so the event loop wakes up. */ void mark (); + private: int m_fds[2] = { -1, -1 }; }; |