mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Fix for win32 NamedPipe::isOpen().
This commit is contained in:
parent
7286465f01
commit
28e5942c59
3 changed files with 12 additions and 5 deletions
|
|
@ -201,3 +201,8 @@ int NamedPipe::write (const void* sourceBuffer, int numBytesToWrite, int timeOut
|
|||
{
|
||||
return pimpl != nullptr ? pimpl->write (static_cast <const char*> (sourceBuffer), numBytesToWrite, timeOutMilliseconds) : -1;
|
||||
}
|
||||
|
||||
bool NamedPipe::isOpen() const
|
||||
{
|
||||
return pimpl != nullptr;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -795,6 +795,8 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
bool isConnected() const noexcept { return connected; }
|
||||
|
||||
HANDLE pipeH, cancelEvent;
|
||||
bool connected, isPipe;
|
||||
};
|
||||
|
|
@ -808,6 +810,11 @@ NamedPipe::~NamedPipe()
|
|||
close();
|
||||
}
|
||||
|
||||
bool NamedPipe::isOpen() const
|
||||
{
|
||||
return pimpl != nullptr && pimpl->connected;
|
||||
}
|
||||
|
||||
void NamedPipe::cancelPendingReads()
|
||||
{
|
||||
if (pimpl != nullptr)
|
||||
|
|
|
|||
|
|
@ -35,11 +35,6 @@ bool NamedPipe::createNewPipe (const String& pipeName)
|
|||
return openInternal (pipeName, true);
|
||||
}
|
||||
|
||||
bool NamedPipe::isOpen() const
|
||||
{
|
||||
return pimpl != nullptr;
|
||||
}
|
||||
|
||||
String NamedPipe::getName() const
|
||||
{
|
||||
return currentPipeName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue