mirror of
https://github.com/mmueller41/mxtasking.git
synced 2026-01-21 12:42:57 +01:00
Genode::Env is now a static class member. Allows to use Environment without instance again.
This commit is contained in:
@@ -7,24 +7,15 @@ namespace mx::system {
|
|||||||
*/
|
*/
|
||||||
class Environment
|
class Environment
|
||||||
{
|
{
|
||||||
private:
|
|
||||||
Genode::Env &_env;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Environment(Genode::Env &env) : _env(env) {}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Genode environment capability
|
* @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.
|
* @return True, if NUMA balancing is enabled by the system.
|
||||||
|
|||||||
Reference in New Issue
Block a user