Intel® Software Guard Extensions (Intel® SGX) and Intel® Transaction Synchronization Extensions (Intel® TSX) compatibility; alternative to Intel TSX
Calling Intel® Software Guard Extensions (Intel® SGX) instructions xbegin and xend from Intel SGX enclaves results in an abort or status of 0x0.
Read Deep Dive Intel Transactional Synchronization Extensions Asynchronous Abort for more information on Intel TSX and Intel SGX compatibility.
As an alternative to TSX, use synchronized code blocks in C++.