diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-05 16:17:49 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-05 16:17:49 +0200 |
commit | 22b07e0233a29d9633ffa825a79503befaf2e16e (patch) | |
tree | 1d8b06056f8e12197158f5d906319767d3dedda5 /libs/pbd/crossthread.win.cc | |
parent | e11ba7b79d68bc1070b170236c22123966d7bcc3 (diff) |
NOOP, remove trailing tabs/whitespace.
Diffstat (limited to 'libs/pbd/crossthread.win.cc')
-rw-r--r-- | libs/pbd/crossthread.win.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/pbd/crossthread.win.cc b/libs/pbd/crossthread.win.cc index 69d744e81d..5eca5fb4e8 100644 --- a/libs/pbd/crossthread.win.cc +++ b/libs/pbd/crossthread.win.cc @@ -43,7 +43,7 @@ CrossThreadChannel::CrossThreadChannel (bool non_blocking) // make the socket non-blockable if required u_long mode = (u_long)non_blocking; int otp_result = 0; - + otp_result = ioctlsocket(send_socket, FIONBIO, &mode); if (otp_result != NO_ERROR) { std::cerr << "CrossThreadChannel::CrossThreadChannel() Send socket cannot be set to non blocking mode with error: " << WSAGetLastError() << std::endl; @@ -72,10 +72,10 @@ CrossThreadChannel::CrossThreadChannel (bool non_blocking) std::cerr << "CrossThreadChannel::CrossThreadChannel() Setting receive socket address to local failed with error: " << WSAGetLastError() << std::endl; return; } - + // construct IOChannel receive_channel = g_io_channel_win32_new_socket((gint)receive_socket); - + // set binary data type GIOStatus g_status = g_io_channel_set_encoding (receive_channel, NULL, NULL); if (G_IO_STATUS_NORMAL != g_status ) { @@ -104,7 +104,7 @@ CrossThreadChannel::wakeup () { char c = 0; - // write one byte to wake up a thread which is listening our IOS + // write one byte to wake up a thread which is listening our IOS sendto(send_socket, &c, sizeof(c), 0, (SOCKADDR*)&recv_address, sizeof(recv_address) ); } @@ -125,7 +125,7 @@ CrossThreadChannel::drain () if (G_IO_STATUS_NORMAL != g_status) { std::cerr << "CrossThreadChannel::CrossThreadChannel() Cannot drain from read buffer! " << g_status << std::endl; - + if (g_error) { std::cerr << "Error is Domain: " << g_error->domain << " Code: " << g_error->code << std::endl; g_clear_error(&g_error); @@ -184,7 +184,7 @@ CrossThreadChannel::receive (char& msg, bool wait) return -1; } } - + // fetch the message from the channel. GIOStatus g_status = g_io_channel_read_chars (receive_channel, &msg, sizeof(msg), &read, &g_error); |