As far as I can tell the digitalWrite provided with the Teensy libraries is (mostly) atomic. The code in digitalWrite that turns off PWM is not atomic in either library.
As far as I can tell the digitalWrite provided with the Teensy libraries is (mostly) atomic. The code in digitalWrite that turns off PWM is not atomic in either library.