This website works better with JavaScript.
Home
Help
Sign In
DISTRHO
/
JUCE
mirror of
https://github.com/DISTRHO/JUCE
Watch
1
Star
0
Fork
0
Code
Releases
1
Activity
Browse Source
OSC: fixed an issue where OSCReceiver was busy-waiting and consuming lots of CPU.
tags/2021-05-28
Timur Doumler
10 years ago
parent
44b9eba29a
commit
4f034dbc77
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
modules/juce_osc/osc/juce_OSCReceiver.cpp
+ 4
- 0
modules/juce_osc/osc/juce_OSCReceiver.cpp
View File
@@ -434,6 +434,10 @@ private:
{
jassert (socket != nullptr);
char buffer[oscBufferSize];
socket->waitUntilReady (true, -1);
if (threadShouldExit())
return;
const int bytesRead = socket->read (buffer, (int) sizeof (buffer), false);
Write
Preview
Loading…
Cancel
Save