4 ms·
How does it handle exceptions?
by 29athrowaway 4y ago
How does it handle exceptions?
- loeg 4y agoInternally it uses a MutexLocker which will get destructed as an exception unwinds the stack. The destructor unlocks the mutex. https://github.com/SerenityOS/serenity/blob/master/Kernel/Locking/MutexProtected.h#L55 https://github.com/SerenityOS/serenity/blob/master/Kernel/Lo... https://github.com/SerenityOS/serenity/blob/master/Kernel/Locking/Mutex.h#L146 https://github.com/SerenityOS/serenity/blob/master/Kernel/Lo...