Browse Source

OSC: Process all available events in one wait cycle.

tags/non-daw-v1.1.0
Jonathan Moore Liles 13 years ago
parent
commit
0f688c99ae
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      nonlib/OSC/Endpoint.C

+ 4
- 3
nonlib/OSC/Endpoint.C View File

@@ -339,11 +339,12 @@ namespace OSC
wait( 0 );
}

/** Process any waiting events and return immediately */
/** Process any waiting events and return after timeout */
void
Endpoint::wait ( int timeout ) const
{
lo_server_recv_noblock( _server, timeout );
{
if ( lo_server_wait( _server, timeout ) )
while ( lo_server_recv_noblock( _server, 0 ) ) { }
}

/** Process events forever */


Loading…
Cancel
Save