diff --git a/src/Mayaqua/Unix.c b/src/Mayaqua/Unix.c index 84da9326..dbdb5e47 100644 --- a/src/Mayaqua/Unix.c +++ b/src/Mayaqua/Unix.c @@ -1849,6 +1849,8 @@ void UnixUnlockEx(LOCK *lock, bool inner) } // Lock +// Recursive locking is implemented manually instead of using PTHREAD_MUTEX_RECURSIVE. +// See: https://github.com/SoftEtherVPN/SoftEtherVPN/pull/2219 bool UnixLock(LOCK *lock) { pthread_mutex_t *mutex;