Cédrick Béler wrote:
I like this solution but maybe not as efficient, thread safe (what peaople mean by that?)
Without making the implementation of the proxy-based Pipe object radically more complicated and less efficient than it already is, it would not be thread-safe to share the same Pipe object among multiple threads.