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

Method write

common/alog.cpp:47–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 constexpr BaseLogOutput(int fd = 0) : log_file_fd(fd) { }
46
47 void write(int, const char* begin, const char* end) override {
48 std::ignore = ::write(log_file_fd, begin, end - begin);
49 throttle_block();
50 }
51 void throttle_block() {
52 if (throttle == -1UL) return;
53 time_t t = time(0);

Callers 1

AsyncLogOutputMethod · 0.45

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected