rb_str_locktmp

Function rb_str_locktmp 

Source
pub unsafe extern "C" fn rb_str_locktmp(str_: VALUE) -> VALUE
Expand description

Obtains a “temporary lock” of the string. This advisory locking mechanism prevents other cooperating threads from tampering the receiver. The same thing could be done via freeze mechanism, but this one can also be unlocked using rb_str_unlocktmp.

§@param[out] str String to lock. @exception rb_eRuntimeError str already locked. @return The given string. @post The string is locked.

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3