mirror of
https://github.com/mmueller41/mxtasking.git
synced 2026-01-21 12:42:57 +01:00
Added missing include and typo for class member.
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
#include "environment.h"
|
||||||
|
|
||||||
namespace mx::system {
|
namespace mx::system {
|
||||||
/**
|
/**
|
||||||
@@ -35,7 +36,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* @return Number of available cores.
|
* @return Number of available cores.
|
||||||
*/
|
*/
|
||||||
static std::uint16_t count_cores() { return std::uint16_t(Environment::env.cpu().affinity_space().total);
|
static std::uint16_t count_cores() { return std::uint16_t(Environment::env.cpu().affinity_space().total());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
} // namespace mx::system
|
} // namespace mx::system
|
||||||
Reference in New Issue
Block a user