pub fn rseq_register_thread() -> Rseq
Register the current thread for restartable sequences.
Returns an Rseq handle for the newly registered thread.
Rseq
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.
MAX_THREADS