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

Function key_usable

thread/thread-key.cpp:33–35  ·  view source on GitHub ↗

A program would have to create and destroy a key 2^63 times to overflow the sequence */

Source from the content-addressed store, hash-verified

31
32/* A program would have to create and destroy a key 2^63 times to overflow the sequence */
33static inline bool key_usable(uint64_t key) {
34 return key < key + 2;
35}
36
37struct thread_key_data {
38 uint64_t seq;

Callers 1

thread_key_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected