aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-06-24 10:51:26 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-06-24 10:51:26 -0400
commit3b8e8078408feb49cd41272935f3df2e35faa092 (patch)
tree37b1738057636ae8a472a7ccfb8ff3dcb4dd0135 /include
parent2a5c9418c2043f1176ad8afb377a1d64df162bfd (diff)
downloadstasis-3b8e8078408feb49cd41272935f3df2e35faa092.tar.gz
Add get_cpu_count()
* Exposes STASIS_CPU_COUNT and CPU_COUNT to the runtime environment
Diffstat (limited to 'include')
-rw-r--r--include/utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/utils.h b/include/utils.h
index 2c80e77..eee2e30 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -351,4 +351,10 @@ int redact_sensitive(const char **to_redact, size_t to_redact_size, char *src, c
*/
struct StrList *listdir(const char *path);
+/**
+ * Get CPU count
+ * @return CPU count on success, zero on error
+ */
+long get_cpu_count();
+
#endif //STASIS_UTILS_H