Crate intel_tsx_rtm [] [src]

intel-tsx-rtm

This crates provides a simple set of wrappers around Intel's TSX RTM instructions and associated intrinsics. It uses code to provide runtime detection of CPUs without TSX and fallback to non-hardware paths. It is best to start with HardwareMemoryTransactionManager.

It will only compile with nightly (as of February 8th, 2018) because it uses the asm! macro.

Modules

intrinsics

Very low-level intrinsics closely matching those defined in gcc, clang and Andi Kleen's tsx-tools.

Structs

HardwareMemoryTransactionManager

A simple wrapper to avoid constantly having to check for support of hardware memory transactions.

HardwareMemoryTransactionResult

This structure wraps the results of an execution of a transaction.