The interrupt library is thread safe on all modules.
The i2c library is not thread safe on all modules.
The Gpio library is thread safe on the T20 and T30 modules.
The Tegra CPUs provide atomic bit-set and bit-clear registers for the GPIO peripherals.
To make the Gpio library thread safe on all modules, we needed to protect each GPIO operation with a mutex, which would have huge impacts on performance. Therefore we decided to avoid the mutex and implement as much thread safety as possible, without mutexes.