MCPcopy Create free account
hub / github.com/Tencent/phxqueue / HashUi32

Function HashUi32

phxqueue/lock/lock.cpp:35–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35inline uint32_t HashUi32(const std::string &s) {
36 return std::hash<std::string>()(s) >> ((sizeof(std::size_t) - sizeof(uint32_t)) * 8);
37}
38
39
40}

Callers 3

AcquireLockMethod · 0.85
GetLockInfoMethod · 0.85
PaxosAcquireLockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected