MCPcopy Create free account
hub / github.com/apache/mesos / poll

Function poll

3rdparty/libprocess/src/windows/io.cpp:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35Future<short> poll(int_fd fd, short events)
36{
37 if (events != io::READ) {
38 return Failure("Expected io::READ (" + stringify(io::READ) + ")"
39 " but received " + stringify(events));
40 }
41
42 return io::internal::read(fd, nullptr, 0, false)
43 .then([]() { return io::READ; });
44}
45
46
47namespace internal {

Callers 4

acceptMethod · 0.50
TEST_FFunction · 0.50
initializeMethod · 0.50
mainFunction · 0.50

Calls 4

FailureClass · 0.85
readFunction · 0.70
stringifyClass · 0.50
thenMethod · 0.45

Tested by 1

TEST_FFunction · 0.40