Modify comments style

pull/19393/head
Yunjia Wang 6 years ago
parent 7c4c6e2e9a
commit d73abc7b56
  1. 5
      src/core/lib/gprpp/thd.h
  2. 2
      src/core/lib/gprpp/thd_posix.cc

@ -64,9 +64,8 @@ class Thread {
}
bool tracked() const { return tracked_; }
/// Set thread stack size (in bytes). Set to 0 will reset stack size to
/// default value, which is 64KB for Windows threads and 2MB for Posix(x86)
/// threads.
/// 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.
Options& set_stack_size(size_t bytes) {
stack_size_ = bytes;
return *this;

@ -55,7 +55,7 @@ size_t RoundUpToPageSize(size_t size) {
return (size + page_size - 1) & ~(page_size - 1);
}
// Return the minimum valid stack size that can be passed to
// Returns the minimum valid stack size that can be passed to
// pthread_attr_setstacksize.
size_t MinValidStackSize(size_t request_size) {
if (request_size < _SC_THREAD_STACK_MIN) {

Loading…
Cancel
Save