From 9ce91e2952dcb62b26342e82b93d6436966dba44 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 23 Apr 2022 22:32:29 +0200 Subject: [PATCH] NO-OP: clang-format --- libs/pbd/crossthread.posix.cc | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/libs/pbd/crossthread.posix.cc b/libs/pbd/crossthread.posix.cc index 08db4debb2..3fe2f2bd43 100644 --- a/libs/pbd/crossthread.posix.cc +++ b/libs/pbd/crossthread.posix.cc @@ -20,8 +20,8 @@ #include CrossThreadChannel::CrossThreadChannel (bool non_blocking) - : receive_channel (0) - , receive_source (0) + : receive_channel (0) + , receive_source (0) { fds[0] = -1; fds[1] = -1; @@ -43,7 +43,7 @@ CrossThreadChannel::CrossThreadChannel (bool non_blocking) } } - receive_channel = g_io_channel_unix_new (fds[0]); + receive_channel = g_io_channel_unix_new (fds[0]); } CrossThreadChannel::~CrossThreadChannel () @@ -57,9 +57,9 @@ CrossThreadChannel::~CrossThreadChannel () } if (receive_channel) { - g_io_channel_unref (receive_channel); - receive_channel = 0; - } + g_io_channel_unref (receive_channel); + receive_channel = 0; + } if (fds[0] >= 0) { close (fds[0]); @@ -76,7 +76,7 @@ void CrossThreadChannel::wakeup () { char c = 0; - (void) ::write (fds[1], &c, 1); + (void)::write (fds[1], &c, 1); } void @@ -89,16 +89,16 @@ CrossThreadChannel::drain () int CrossThreadChannel::deliver (char msg) { - return ::write (fds[1], &msg, 1); + return ::write (fds[1], &msg, 1); } bool -CrossThreadChannel::poll_for_request() +CrossThreadChannel::poll_for_request () { struct pollfd pfd; - pfd.fd = fds[0]; - pfd.events = POLLIN|POLLERR|POLLHUP|POLLNVAL; - while(true) { + pfd.fd = fds[0]; + pfd.events = POLLIN | POLLERR | POLLHUP | POLLNVAL; + while (true) { #ifdef __APPLE__ /* on macOS poll() will not return when the pipe * is closed in an EOF state. ork around with a timeout. @@ -134,5 +134,5 @@ CrossThreadChannel::receive (char& msg, bool wait) return -1; } } - return ::read (fds[0], &msg, 1); + return ::read (fds[0], &msg, 1); }