mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 02:28:54 +00:00
parent
0ad655f4be
commit
563760eb08
@ -206,6 +206,7 @@ namespace Genode {
|
||||
{
|
||||
Lock::Guard lock_guard(_lock);
|
||||
OBJ_TYPE * const obj_typed = (OBJ_TYPE *)_tree.first();
|
||||
if (!obj_typed) { return 0; }
|
||||
obj_typed->lock();
|
||||
return obj_typed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user