MochalovAlexey 2025.01.27 09:39:06
Fix potential deadlock when starting the encryption thread (#8403)
* add a check to verify thread matching between the encryption thread and the thread where we release the attachment. If they match, use a dummy mutex instead of the actual dbb_thread_mutex to avoid a deadlock
* fix Windows build by introducing a method to retrieve thread id from crypto thread handle
* rename the crypt process thread id variable to its actual purpose as handle
---------
Co-authored-by: aleksey.mochalov <aleksey.mochalov@red-soft.ru>

Changed paths:
  M src/common/ThreadStart.cpp
  M src/common/ThreadStart.h
  M src/jrd/CryptoManager.cpp
  M src/jrd/CryptoManager.h
  M src/jrd/jrd.cpp