GRPC C++  1.26.0
Public Member Functions
grpc_core::Thread::Options Class Reference

#include <thd.h>

Public Member Functions

 Options ()
 
Optionsset_joinable (bool joinable)
 Set whether the thread is joinable or detached. More...
 
bool joinable () const
 
Optionsset_tracked (bool tracked)
 Set whether the thread is tracked for fork support. More...
 
bool tracked () const
 
Optionsset_stack_size (size_t bytes)
 Sets thread stack size (in bytes). More...
 
size_t stack_size () const
 

Constructor & Destructor Documentation

◆ Options()

grpc_core::Thread::Options::Options ( )
inline

Member Function Documentation

◆ joinable()

bool grpc_core::Thread::Options::joinable ( ) const
inline

◆ set_joinable()

Options& grpc_core::Thread::Options::set_joinable ( bool  joinable)
inline

Set whether the thread is joinable or detached.

◆ set_stack_size()

Options& grpc_core::Thread::Options::set_stack_size ( size_t  bytes)
inline

Sets thread stack size (in bytes).

Sets to 0 will use the default stack size which is 64KB for Windows threads and 2MB for Posix(x86) threads.

◆ set_tracked()

Options& grpc_core::Thread::Options::set_tracked ( bool  tracked)
inline

Set whether the thread is tracked for fork support.

◆ stack_size()

size_t grpc_core::Thread::Options::stack_size ( ) const
inline

◆ tracked()

bool grpc_core::Thread::Options::tracked ( ) const
inline

The documentation for this class was generated from the following file: