MCPcopy Create free account
hub / github.com/apache/brpc / bthread_attr_set_name

Function bthread_attr_set_name

src/bthread/bthread.cpp:672–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670} // extern "C"
671
672void bthread_attr_set_name(bthread_attr_t* attr, const char* name) {
673 if (attr) {
674 strncpy(attr->name, name, BTHREAD_NAME_MAX_LENGTH);
675 attr->name[BTHREAD_NAME_MAX_LENGTH] = '\0';
676 }
677}

Callers 15

StartMethod · 0.85
StartMethod · 0.85
QueueMessageMethod · 0.85
InitMethod · 0.85
StartInternalMethod · 0.85
RunPeriodicTaskThreadFunction · 0.85
StartAcceptMethod · 0.85
AfterAppConnectedMethod · 0.85
KeepWriteIfConnectedMethod · 0.85
StartWriteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected