Public Member Functions | Private Attributes | List of all members
grpc_core::Thread::Options Class Reference

#include <thd.h>

Public Member Functions

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

Private Attributes

bool joinable_
 
size_t stack_size_
 
bool tracked_
 

Detailed Description

Definition at line 45 of file thd.h.

Constructor & Destructor Documentation

◆ Options()

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

Definition at line 47 of file thd.h.

Member Function Documentation

◆ joinable()

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

Definition at line 53 of file thd.h.

◆ set_joinable()

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

Set whether the thread is joinable or detached.

Definition at line 49 of file thd.h.

◆ 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.

Definition at line 64 of file thd.h.

◆ set_tracked()

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

Set whether the thread is tracked for fork support.

Definition at line 56 of file thd.h.

◆ stack_size()

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

Definition at line 68 of file thd.h.

◆ tracked()

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

Definition at line 60 of file thd.h.

Member Data Documentation

◆ joinable_

bool grpc_core::Thread::Options::joinable_
private

Definition at line 71 of file thd.h.

◆ stack_size_

size_t grpc_core::Thread::Options::stack_size_
private

Definition at line 73 of file thd.h.

◆ tracked_

bool grpc_core::Thread::Options::tracked_
private

Definition at line 72 of file thd.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:37