Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/PhotonLibOS
/ do_fill
Function
do_fill
examples/sync-primitive/sync-primitive.cpp:50–53 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
48
static std::atomic<uint64_t> qps{0}, latency{0};
49
50
__attribute__ ((noinline))
51
static void do_fill(char* buf, size_t size) {
52
memset(buf, 0, size);
53
}
54
55
// A function that costs approximately 1 us
56
static void func_1us() {
Callers
1
func_1us
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected