Skip to content

Commit

Permalink
[core] Update srtcore/threadname.h
Browse files Browse the repository at this point in the history
Co-authored-by: Maxim Sharabayko <maxsharabayko@haivision.com>
  • Loading branch information
quink-black and maxsharabayko committed Aug 4, 2021
1 parent 73cad8d commit d6f93a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion srtcore/threadname.h
Expand Up @@ -144,7 +144,10 @@ class ThreadName
static const bool DUMMY_IMPL = ThreadNameImpl::DUMMY_IMPL;
static const size_t BUFSIZE = ThreadNameImpl::BUFSIZE;

// len should >= BUFSIZE
/// @brief Print thread ID to the provided buffer.
/// The size of the destination buffer is assumed to be at least ThreadName::BUFSIZE.
/// @param [out] output destination buffer to get thread name
/// @return true on success, false on failure
static bool get(char* output) {
return ThreadNameImpl::get(output);
}
Expand Down

0 comments on commit d6f93a1

Please sign in to comment.