chromium/third_party/mediapipe/src/mediapipe/framework/deps/threadpool_std_thread_impl.cc

// Copyright 2020 The MediaPipe Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include <errno.h>
#include <string.h>

#include <thread>  // NOLINT(build/c++11)

#include "absl/log/absl_log.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_join.h"
#include "mediapipe/framework/deps/threadpool.h"

namespace mediapipe {

class ThreadPool::WorkerThread {};

ThreadPool::WorkerThread::WorkerThread(ThreadPool* pool,
                                       const std::string& name_prefix)
    :{}

ThreadPool::WorkerThread::~WorkerThread() {}

void ThreadPool::WorkerThread::Join() {}

void* ThreadPool::WorkerThread::ThreadBody(void* arg) {}

ThreadPool::ThreadPool(int num_threads) {}

ThreadPool::ThreadPool(const std::string& name_prefix, int num_threads)
    :{}

ThreadPool::ThreadPool(const ThreadOptions& thread_options,
                       const std::string& name_prefix, int num_threads)
    :{}

ThreadPool::~ThreadPool() {}

void ThreadPool::StartWorkers() {}

void ThreadPool::Schedule(std::function<void()> callback) {}

int ThreadPool::num_threads() const {}

void ThreadPool::RunWorker() {}

const ThreadOptions& ThreadPool::thread_options() const {}

namespace internal {

std::string CreateThreadName(const std::string& prefix, int thread_id) {}

}  // namespace internal

}  // namespace mediapipe