Add 'operator *' to os/volatile_object.h

This operator is needed when we want to create a reference to (the
content of) a volatile object.
This commit is contained in:
Norman Feske 2014-01-21 22:29:26 +01:00
parent 638a9cfd40
commit c265cfa593

View File

@ -134,6 +134,8 @@ class Genode::Volatile_object
*/
MT *operator -> () { _check_constructed(); return _ptr(); }
MT const *operator -> () const { _check_constructed(); return _const_ptr(); }
MT &operator * () { _check_constructed(); return *_ptr(); }
};