License:
BSD style: see license.txtVersion:
Jun 2008: Initial releaseAuthor:
schveiguy
1 2 3 4 5 6 7 8 9 10 11 | auto tc = new ThreadPipe; void outFunc() { Stdout.copy(tc.input); } auto t = new Thread(&outFunc); t.start(); tc.write("hello, thread!"); tc.close(); t.join(); |
Params:
bufferSize | the size to allocate the buffer. |
TODO:
move stop() functionality to detach when it becomes possible to have fully-owned members