size_t -> int

This commit is contained in:
Rasmus Munk Larsen
2016-06-03 18:06:37 -07:00
parent 76308e7fd2
commit f1f2ff8208
5 changed files with 21 additions and 21 deletions

View File

@@ -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() {}
};