Home
last modified time | relevance | path

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

/system/extras/alloc-stress/
Dalloc-stress.cpp28 int m_readFd; member in Pipe
34 Pipe(int readFd, int writeFd) : m_readFd{readFd}, m_writeFd{writeFd} { in Pipe()
35 fcntl(m_readFd, F_SETFD, FD_CLOEXEC);
39 m_readFd = rval.m_readFd; in Pipe()
41 rval.m_readFd = 0; in Pipe()
45 if (m_readFd) in ~Pipe()
46 close(m_readFd); in ~Pipe()
52 fcntl(m_readFd, F_SETFD, 0); in preserveOverFork()
55 fcntl(m_readFd, F_SETFD, FD_CLOEXEC); in preserveOverFork()
60 return m_readFd; in getReadFd()
[all …]
/system/libhwbinder/vts/performance/
DBenchmark_throughput.cpp48 int m_readFd; member in Pipe
51 : m_readFd{readFd}, m_writeFd{writeFd} { in Pipe()
58 m_readFd = rval.m_readFd; in Pipe()
60 rval.m_readFd = 0; in Pipe()
64 if (m_readFd) in ~Pipe()
65 close(m_readFd); in ~Pipe()
76 int error = read(m_readFd, &val, sizeof(val)); in wait()
84 int error = read(m_readFd, &v, sizeof(T)); in recv()
DLatency.cpp114 int m_readFd; member in Pipe
116 Pipe(int readFd, int writeFd) : m_readFd{readFd}, m_writeFd{writeFd} {} in Pipe()
123 m_readFd = rval.m_readFd; in Pipe()
125 rval.m_readFd = 0; in Pipe()
129 if (m_readFd) close(m_readFd); in ~Pipe()
139 int error = read(m_readFd, &val, sizeof(val)); in wait()
149 int error = read(m_readFd, &v, sizeof(T)); in recv()