StrongRootsScope::StrongRootsScope(uint n_threads) : _n_threads(n_threads) { // No need for thread claim for statically-known sequential case (_n_threads == 0) // For positive values, clients of this class often unify sequential/parallel // cases, so they expect the thread claim token to be updated. if (_n_threads != 0) {
Threads::change_thread_claim_token();
}
}
StrongRootsScope::~StrongRootsScope() { if (_n_threads != 0) {
Threads::assert_all_threads_claimed();
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.