This website works better with JavaScript.
Home
Help
Sign In
linuxaudio
/
new-session-manager
mirror of
https://github.com/linuxaudio/new-session-manager
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
17
Wiki
Activity
Browse Source
NSM: Process more than one message per wait cycle!
tags/non-daw-v1.1.0
Jonathan Moore Liles
13 years ago
parent
31f0d6b311
commit
d5ed4e8ada
2 changed files
with
4 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-2
nonlib/NSM/Client.C
+1
-1
nonlib/NSM/Client.H
+ 3
- 2
nonlib/NSM/Client.C
View File
@@ -122,9 +122,10 @@ namespace NSM
}
void
Client::check ( )
Client::check (
int timeout
)
{
lo_server_recv_noblock( _server, 0 );
if ( lo_server_wait( _server, timeout ) )
while ( lo_server_recv_noblock( _server, 0 ) ) {}
}
void
+ 1
- 1
nonlib/NSM/Client.H
View File
@@ -72,7 +72,7 @@ namespace NSM
int init_thread ( void );
/* call this periodically to check for new messages */
void check (
void
);
void check (
int timeout = 0
);
/* or call these to start and stop a thread (must do your own locking in handler!) */
void start ( void );
Write
Preview
Loading…
Cancel
Save