Double lock in force_close()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MirAL |
Fix Released
|
High
|
Alan Griffiths |
Bug Description
WindowManagemen
in qtmir:
void WindowManagemen
{
m_tools.
});
}
------------------
in miral:
void miral::
{
auto application = window.
if (application && window)
}
void miral::
{
Locker lock{mutex, policy};
[...]
}
void miral::
{
Locker lock{mutex, policy};
callback();
}
Related branches
- Daniel d'Andrada (community): Approve
-
Diff: 67 lines (+11/-9)2 files modifiedmiral/basic_window_manager.cpp (+10/-9)
miral/basic_window_manager.h (+1/-0)
Changed in miral: | |
status: | In Progress → Fix Committed |
Changed in miral: | |
status: | Fix Committed → Fix Released |
Yes, force_close() expects the mutex to be locked and so shouldn't be calling a function from shell:: WindowManager (because that locks the mutex).