Skip to content

Commit cce5117

Browse files
r-barnesmeta-codesync[bot]
authored andcommitted
Extirpate FOLLY_CONSTINIT from folly/concurrency/ProcessLocalUniqueId.cpp
Summary: All code should be on C++20 now. Reviewed By: yfeldblum Differential Revision: D88982120 fbshipit-source-id: 5f9b63cfd8f669068fdd5b266d0c4b5198f7489f
1 parent cba5f6d commit cce5117

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

third-party/folly/src/folly/concurrency/ProcessLocalUniqueId.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
namespace folly {
2424

2525
uint64_t processLocalUniqueId() {
26-
FOLLY_CONSTINIT static relaxed_atomic<uint64_t> nextEpoch{0};
26+
constinit static relaxed_atomic<uint64_t> nextEpoch{0};
2727
// Id format is <epoch: 48 bits> <counter: 16 bits>.
2828
// Ephemeral threads, if any, can waste a whole epoch, so we keep epochs
2929
// relatively small, but large enough to amortize the atomic epoch increment.

0 commit comments

Comments
 (0)