Skip to content

Commit c259b3b

Browse files
committed
fixup! src: use uint32_t for process initialization flags enum
1 parent f3cffbd commit c259b3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/node.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,9 @@ void ResetSignalHandlers() {
431431
#endif // __POSIX__
432432
}
433433

434+
// We use uint32_t since that can be accessed as a lock-free atomic
435+
// variable on all platforms that we support, which we require in
436+
// order for its value to be usable inside signal handlers.
434437
static std::atomic<uint32_t> init_process_flags = 0;
435438
static_assert(
436439
std::is_same_v<std::underlying_type_t<ProcessInitializationFlags::Flags>,

0 commit comments

Comments
 (0)