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

Function bthread_id_list_add

src/bthread/id.cpp:659–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659int bthread_id_list_add(bthread_id_list_t* list, bthread_id_t id) {
660 if (list->impl == NULL) {
661 list->impl = new (std::nothrow) bthread::IdList;
662 if (NULL == list->impl) {
663 return ENOMEM;
664 }
665 }
666 return static_cast<bthread::IdList*>(list->impl)->add(id);
667}
668
669int bthread_id_list_reset(bthread_id_list_t* list, int error_code) {
670 return bthread_id_list_reset2(list, error_code, std::string());

Callers 3

TESTFunction · 0.85
WaitMethod · 0.85
NotifyOnFailedMethod · 0.85

Calls 1

addMethod · 0.45

Tested by 1

TESTFunction · 0.68