Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
35
inline 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
AcquireLock
Method · 0.85
GetLockInfo
Method · 0.85
PaxosAcquireLock
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected