Home
last modified time | relevance | path

Searched refs:m_readFd (Results 1 – 2 of 2) sorted by relevance

/system/extras/alloc-stress/
Dalloc-stress.cpp37 int m_readFd; member in Pipe
44 Pipe(int readFd, int writeFd) : m_readFd{readFd}, m_writeFd{writeFd} { in Pipe()
45 fcntl(m_readFd, F_SETFD, FD_CLOEXEC);
49 m_readFd = rval.m_readFd; in Pipe()
51 rval.m_readFd = 0; in Pipe()
55 if (m_readFd) close(m_readFd); in ~Pipe()
60 fcntl(m_readFd, F_SETFD, 0); in preserveOverFork()
63 fcntl(m_readFd, F_SETFD, FD_CLOEXEC); in preserveOverFork()
67 int getReadFd() { return m_readFd; } in getReadFd()
76 int error = read(m_readFd, &val, sizeof(val)); in wait()
[all …]
/system/libhwbinder/vts/performance/
DBenchmark_throughput.cpp49 int m_readFd; member in Pipe
52 : m_readFd{readFd}, m_writeFd{writeFd} { in Pipe()
59 m_readFd = rval.m_readFd; in Pipe()
61 rval.m_readFd = 0; in Pipe()
65 if (m_readFd) in ~Pipe()
66 close(m_readFd); in ~Pipe()
77 int error = read(m_readFd, &val, sizeof(val)); in wait()
85 int error = read(m_readFd, &v, sizeof(T)); in recv()