__tm_abort clarification

__tm_abort clarification

Bild des Benutzers hvolos

The documentation says that "__tm_abort" must be lexically bound to a transaction. My understanding is that you cannot call __tm_abort inside a tm_callable transaction called through a transaction. Is that right?

__attribute__ ((tm_callable)) void abort_me() {
__tm_abort; /* ILLEGAL */
}

foo() {
__tm_atomic {
abort_me();
}
}

2 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.
Bild des Benutzers Xinmin Tian (Intel)

Your understanding is correct. Thanks for trying our Edition 2.0 out.


Xinmin Tian (Intel)


Melden Sie sich an, um einen Kommentar zu hinterlassen.