Home | History | Annotate | Download | only in alloc-stress

Lines Matching refs:Pipe

27 class Pipe {
30 Pipe(const Pipe &) = delete;
31 Pipe& operator=(const Pipe &) = delete;
32 Pipe& operator=(const Pipe &&) = delete;
34 Pipe(int readFd, int writeFd) : m_readFd{readFd}, m_writeFd{writeFd} {
38 Pipe(Pipe&& rval) noexcept {
44 ~Pipe() {
88 static Pipe makePipeFromFds(int readFd, int writeFd) {
89 return Pipe(readFd, writeFd);
91 static tuple<Pipe, Pipe> createPipePair() {
95 int error1 = pipe(a);
96 int error2 = pipe(b);
100 return make_tuple(Pipe(a[0], b[1]), Pipe(b[0], a[1]));
104 void createProcess(Pipe pipe, const char *exName, const char *arg)
106 pipe.preserveOverFork(true);
112 snprintf(readFdStr, sizeof(readFdStr), "%d", pipe.getReadFd());
113 snprintf(writeFdStr, sizeof(writeFdStr), "%d", pipe.getWriteFd());
119 pipe.preserveOverFork(false);
184 Pipe p{atoi(argv[3]), atoi(argv[4])};
206 auto pipes = Pipe::createPipePair();
210 Pipe &p = std::get<0>(pipes);