예제 #1
0
void NativePipe::PollForWrites()
{
    KObjectRef save(this, true);

    BytesRef bytes = 0;
    while (!closed || buffers.size() > 0)
    {
        PollForWriteIteration();
        Poco::Thread::sleep(50);
    }

    this->CloseNativeWrite();
}
예제 #2
0
	void NativePipe::PollForWrites()
	{
		this->duplicate();

		AutoBlob blob = 0;
		while (!closed || buffers.size() > 0)
		{
			PollForWriteIteration();
			Poco::Thread::sleep(50);
		}

		this->CloseNativeWrite();
		this->release();
	}