Skip to content

Commit c20eebc

Browse files
committed
inline new helper functions
1 parent 0899ed0 commit c20eebc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inst/include/RcppThread/quickpool.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Thomas Nagler (MIT License)
1+
// Copyright 2021 Thomas Nagler (MIT License)
22
//
33
// Permission is hereby granted, free of charge, to any person obtaining a copy
44
// of this software and associated documentation files (the "Software"), to deal
@@ -749,7 +749,7 @@ class TaskManager
749749
};
750750

751751
// find out which cores are allowed for use by pthread
752-
std::vector<size_t>
752+
inline std::vector<size_t>
753753
get_avail_cores()
754754
{
755755
auto ncores = std::thread::hardware_concurrency();
@@ -770,7 +770,7 @@ get_avail_cores()
770770
return avail_cores;
771771
}
772772

773-
size_t
773+
inline size_t
774774
num_cores_avail()
775775
{
776776
#if (defined __linux__)

0 commit comments

Comments
 (0)