diff options
author | 2016-06-23 16:40:07 -0700 | |
---|---|---|
committer | 2016-06-23 16:40:07 -0700 | |
commit | a9c1e4d7b7ce7c9dc5310cee1ed13fdef08e506e (patch) | |
tree | 0da9ce7e94a29f6fc1071b4b0286ad089f803dc5 /unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h | |
parent | d39df320d29ecc678e019962dfb2bdf64b061197 (diff) |
Return -1 from CurrentThreadId when called by thread outside the pool.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h b/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h index 569cd4bc8..a65ee97c9 100644 --- a/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h +++ b/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h @@ -22,7 +22,7 @@ class ThreadPoolInterface { virtual int NumThreads() const = 0; // Returns a logical thread index between 0 and NumThreads() - 1 if called - // from one of the threads in the pool. Returns NumThreads() otherwise. + // from one of the threads in the pool. Returns -1 otherwise. virtual int CurrentThreadId() const = 0; virtual ~ThreadPoolInterface() {} |