xarray icon indicating copy to clipboard operation
xarray copied to clipboard

Add assert to CombinedLock

Open dschwoerer opened this issue 5 months ago • 0 comments

If you have a non-blocking acquire, you have to release all the locks that you did acquire, but you must not release any of the locks that have been locked by another thread.

As it is not stored which locks where acquired, the release is not possible. It is thus not save to use this function without locking.

dschwoerer avatar Sep 24 '25 18:09 dschwoerer