mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
This commit is contained in:
parent
05980836ce
commit
a172f50a98
1 changed files with 2 additions and 1 deletions
|
|
@ -49,6 +49,7 @@ BEGIN_JUCE_NAMESPACE
|
|||
|
||||
#include "../../../src/juce_core/io/files/juce_File.h"
|
||||
#include "../../../src/juce_core/io/files/juce_NamedPipe.h"
|
||||
#include "../../../src/juce_core/threads/juce_Thread.h"
|
||||
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -75,7 +76,7 @@ void NamedPipe::cancelPendingReads()
|
|||
|
||||
int timeout = 2000;
|
||||
while (intern->blocked && --timeout >= 0)
|
||||
sleep (2);
|
||||
Thread::sleep (2);
|
||||
|
||||
intern->stopReadOperation = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue