Skip to main content

rseq_register_thread

Function rseq_register_thread 

Source
pub fn rseq_register_thread() -> Rseq
Expand description

Register the current thread for restartable sequences.

Returns an Rseq handle for the newly registered thread.

ยงPanics

Panics if the thread is already registered, if the maximum number of supported threads (MAX_THREADS) has been exhausted, or if setting the thread RSEQ via syscall fails.