MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / is_counter_less_than

Function is_counter_less_than

net/basic_socket.cpp:324–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324inline bool is_counter_less_than(uint32_t left, uint32_t right) {
325 const uint32_t mid = UINT32_MAX / 2;
326 return (left < right) || (left > right && left > mid && right - left < mid);
327}
328
329int zerocopy_confirm(int fd, uint32_t num_calls, Timeout timeout) {
330 uint32_t counter = 0;

Callers 1

zerocopy_confirmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected