| 301 | typedef ListOfABAFreeId<bthread_id_t, IdTraits> IdList; |
| 302 | |
| 303 | struct IdResetter { |
| 304 | explicit IdResetter(int ec, const std::string& et) |
| 305 | : _error_code(ec), _error_text(et) {} |
| 306 | void operator()(bthread_id_t & id) const { |
| 307 | bthread_id_error2_verbose( |
| 308 | id, _error_code, _error_text, __FILE__ ":" BAIDU_SYMBOLSTR(__LINE__)); |
| 309 | id = INVALID_BTHREAD_ID; |
| 310 | } |
| 311 | private: |
| 312 | int _error_code; |
| 313 | const std::string& _error_text; |
| 314 | }; |
| 315 | |
| 316 | size_t get_sizes(const bthread_id_list_t* list, size_t* cnt, size_t n) { |
| 317 | if (list->impl == NULL) { |
no outgoing calls
no test coverage detected