static ERTS_INLINE ErtsThrPrgrData * perhaps_thr_prgr_data(ErtsSchedulerData *esdp) { if (esdp) return &esdp->thr_progress_data; else return erts_tsd_get(erts_thr_prgr_data_key__); }
static ERTS_INLINE erts_lc_locked_locks_t * get_my_locked_locks(void) { return erts_tsd_get(locks_key); }
int erts_has_code_write_permission(void) { return (code_writing_process != NULL) && erts_tsd_get(has_code_write_permission); }