We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0899ed0 commit c20eebcCopy full SHA for c20eebc
inst/include/RcppThread/quickpool.hpp
@@ -1,4 +1,4 @@
1
-// Copyright 2022 Thomas Nagler (MIT License)
+// Copyright 2021 Thomas Nagler (MIT License)
2
//
3
// Permission is hereby granted, free of charge, to any person obtaining a copy
4
// of this software and associated documentation files (the "Software"), to deal
@@ -749,7 +749,7 @@ class TaskManager
749
};
750
751
// find out which cores are allowed for use by pthread
752
-std::vector<size_t>
+inline std::vector<size_t>
753
get_avail_cores()
754
{
755
auto ncores = std::thread::hardware_concurrency();
@@ -770,7 +770,7 @@ get_avail_cores()
770
return avail_cores;
771
}
772
773
-size_t
+inline size_t
774
num_cores_avail()
775
776
#if (defined __linux__)
0 commit comments