mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-13 22:23:45 +00:00
vbox6: prevent deadlock in framebuffer implementation
QuerySourceBitmap() may end up in a block for VM response, while the VM becomes blocked on the critsect in framebuffer. Fixes #5477
This commit is contained in:
parent
1df55bd2dc
commit
4aa33bce33
@ -138,11 +138,12 @@ class Genodefb :
|
||||
{
|
||||
HRESULT result = E_FAIL;
|
||||
|
||||
Lock();
|
||||
|
||||
/* save the new bitmap reference */
|
||||
_display->QuerySourceBitmap(screen, _display_bitmap.asOutParam());
|
||||
|
||||
Lock();
|
||||
|
||||
bool const ok = (w <= (ULONG)_gui_win.area.w) &&
|
||||
(h <= (ULONG)_gui_win.area.h);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user