mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 13:58:49 +00:00
29233ebca8
Previously, SFTKSlot.rwSessionCount was incremented and decremented atomically, which meant that there was no way to synchronize reads from it in NSC_GetTokenInfo. This patch removes the atomic operations but protects rwSessionCount with SFTKSlot.slotLock. SFTKSlot.sessionCount is already protected in this way, so this should have no performance impact.