Genode::Env is now a static class member. Allows to use Environment without instance again.

This commit is contained in:
Michael Müller
2022-07-05 18:57:05 +02:00
parent cb8bda987f
commit c9b3711d78

View File

@@ -7,24 +7,15 @@ namespace mx::system {
*/
class Environment
{
private:
Genode::Env &_env;
public:
Environment(Genode::Env &env) : _env(env) {}
/**
* @return Genode environment capability
*
*/
Genode::Env &env() { return _env; }
static Genode::Env &env;
static Environment get_instance(Genode::Env &env)
{
static Environment e(env);
return e;
}
/**
* @return True, if NUMA balancing is enabled by the system.