3 ms·
That mutex gets cleaned up because thread interruption is implemented as an exception, so the `finally` block would be able to take care of the mutex.
by djha-skin 3y ago
That mutex gets cleaned up because thread interruption is implemented as an exception, so the `finally` block would be able to take care of the mutex.
- kevingadd 3y agothis is only true if the mutex is guarded by a finally block. your thread could be calling anything, including user-space code written in C that holds a mutex.