mirror of
https://github.com/mmueller41/mxtasking.git
synced 2026-01-21 12:42:57 +01:00
Added methods to set and get global core set.
This commit is contained in:
14
src/mx/system/environment.cpp
Normal file
14
src/mx/system/environment.cpp
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#include "environment.h"
|
||||||
|
#include <mx/util/core_set.h>
|
||||||
|
|
||||||
|
using namespace mx::system;
|
||||||
|
|
||||||
|
void Environment::set_cores(mx::util::core_set *core_set)
|
||||||
|
{
|
||||||
|
system::Environment::get_instance()._coreset = core_set;
|
||||||
|
}
|
||||||
|
|
||||||
|
mx::util::core_set &Environment::cores()
|
||||||
|
{
|
||||||
|
return *Environment::get_instance()._coreset;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user