mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
size_t -> int
This commit is contained in:
@@ -19,11 +19,11 @@ class ThreadPoolInterface {
|
||||
virtual void Schedule(std::function<void()> fn) = 0;
|
||||
|
||||
// Returns the number of threads in the pool.
|
||||
virtual size_t NumThreads() const = 0;
|
||||
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.
|
||||
virtual size_t CurrentThreadId() const = 0;
|
||||
virtual int CurrentThreadId() const = 0;
|
||||
|
||||
virtual ~ThreadPoolInterface() {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user