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