NamedPipes outside of InterProcessConnections?


#1

I’m hoping to use pipes to do non-blocking inter-thread communications, but they do’t seem to be used outside of the IPC classes, and they seem to block.

Can I use them on their own? Has anyone done it? One obvious problem seems to be that ‘read’ blocks, and there’s no indicator of the number of bytes in the read buffer.

What I hope to do is to use the threads I already have (not extra new threads) and just check if I received a message at the start of each loop.

Bruce