Acquiring locks in finalizers

remysucre
Thu, 19 Sep 2024 23:08:36 +0000
General Usage

The manual has an example with a finalizer that acquires a lock (without blocking). However, in the Locks section it also says:

The following are definitely leaf locks (level 1), and must not try to acquire any other lock:
…

finalizers

…

So, is it actually safe for a finalizer to acquire locks?

4 posts - 3 participants