Go to the documentation of this file.
19 #ifndef GRPC_CORE_LIB_GPRPP_THD_H
20 #define GRPC_CORE_LIB_GPRPP_THD_H
37 virtual void Start() = 0;
38 virtual void Join() = 0;
86 Thread(
const char* thd_name,
void (*thd_body)(
void*
arg),
void*
arg,
87 bool* success =
nullptr,
const Options&
options = Options());
94 other.impl_ =
nullptr;
102 if (
this != &other) {
111 other.state_ =
MOVED;
112 other.impl_ =
nullptr;
126 if (
impl_ !=
nullptr) {
142 if (
impl_ !=
nullptr) {
Thread & operator=(Thread &&other) noexcept
Base class for platform-specific thread-state.
Thread(Thread &&other) noexcept
Options & set_stack_size(size_t bytes)
size_t stack_size() const
Options & set_joinable(bool joinable)
Set whether the thread is joinable or detached.
internal::ThreadInternalsInterface * impl_
virtual ~ThreadInternalsInterface()
Options & set_tracked(bool tracked)
Set whether the thread is tracked for fork support.
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:35