Skip to main content

Crate brk_exit

Crate brk_exit 

Source
Expand description

Graceful process shutdown coordination for BRK.

Structsยง

Exit
On first signal, a background thread acquires the write lock (waiting only for the current critical section to finish), runs cleanup callbacks, and exits. Later signals change nothing: the shutdown keeps waiting.
ExitGuard
Defers shutdown while held; Send + 'static, so it can move to background threads.