Skip to content

Commit

Permalink
remove old API
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Jun 26, 2023
1 parent f36a11c commit 0991e1e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions ortools/base/threadpool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "ortools/base/threadpool.h"

#include "absl/log/check.h"
#include "ortools/base/callback.h"

namespace operations_research {
void RunWorker(void* data) {
Expand Down Expand Up @@ -88,9 +87,4 @@ void ThreadPool::Schedule(std::function<void()> closure) {
}
}

void ThreadPool::Add(Closure* closure) {
assert(closure != nullptr);
Schedule([closure] { closure->Run(); });
}

} // namespace operations_research
3 changes: 0 additions & 3 deletions ortools/base/threadpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
#include <thread> // NOLINT
#include <vector>

#include "ortools/base/callback.h"

namespace operations_research {
class ThreadPool {
public:
Expand All @@ -34,7 +32,6 @@ class ThreadPool {
void Schedule(std::function<void()> closure);
std::function<void()> GetNextTask();
void SetQueueCapacity(int capacity);
void Add(Closure* closure);

private:
const int num_workers_;
Expand Down

0 comments on commit 0991e1e

Please sign in to comment.