diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-11-22 15:19:10 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-11-22 15:19:10 +0100 |
commit | 5a85c54c6ef556b96cc1ed844620a4ccee1b7837 (patch) | |
tree | f4e9023cd331fa1218eed76351b3bf9aa33333c7 /src/Common/libzip/zip_source_pkware_decode.c | |
parent | 94903363572cbc8cf829b66591752a684f8361dc (diff) | |
download | VeraCrypt-5a85c54c6ef556b96cc1ed844620a4ccee1b7837.tar.gz VeraCrypt-5a85c54c6ef556b96cc1ed844620a4ccee1b7837.zip |
Windows Driver: Optimize spinlock usage in CompleteIrpWorkItemRoutine
Reduce the critical section protected by spinlock to only cover the list manipulation operation. Move the ActiveWorkItems counter decrement outside the spinlock using InterlockedDecrement, and separate event signaling from the locked section.
This change minimizes time spent at raised IRQL (DISPATCH_LEVEL) and reduces potential for lock contention.
Diffstat (limited to 'src/Common/libzip/zip_source_pkware_decode.c')
0 files changed, 0 insertions, 0 deletions