#include "base/threading/simple_thread.h"
#include <memory>
#include <ostream>
#include "base/check.h"
#include "base/strings/string_number_conversions.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/platform_thread.h"
#include "base/threading/thread_restrictions.h"
namespace base {
SimpleThread::SimpleThread(const std::string& name)
: … { … }
SimpleThread::SimpleThread(const std::string& name, const Options& options)
: … { … }
SimpleThread::~SimpleThread() { … }
void SimpleThread::Start() { … }
void SimpleThread::Join() { … }
void SimpleThread::StartAsync() { … }
PlatformThreadId SimpleThread::tid() { … }
bool SimpleThread::HasBeenStarted() { … }
void SimpleThread::ThreadMain() { … }
DelegateSimpleThread::DelegateSimpleThread(Delegate* delegate,
const std::string& name)
: … { … }
DelegateSimpleThread::DelegateSimpleThread(Delegate* delegate,
const std::string& name,
const Options& options)
: … { … }
DelegateSimpleThread::~DelegateSimpleThread() = default;
void DelegateSimpleThread::Run() { … }
DelegateSimpleThreadPool::DelegateSimpleThreadPool(
const std::string& name_prefix,
size_t num_threads)
: … { … }
DelegateSimpleThreadPool::~DelegateSimpleThreadPool() { … }
void DelegateSimpleThreadPool::Start() { … }
void DelegateSimpleThreadPool::JoinAll() { … }
void DelegateSimpleThreadPool::AddWork(Delegate* delegate,
size_t repeat_count) { … }
void DelegateSimpleThreadPool::Run() { … }
}