Meet one of the three conditions, can run in thread local attr is nullptr tag equal to thread local tag equal to BTHREAD_TAG_INVALID
| 298 | // tag equal to thread local |
| 299 | // tag equal to BTHREAD_TAG_INVALID |
| 300 | BUTIL_FORCE_INLINE bool can_run_thread_local(const bthread_attr_t* __restrict attr) { |
| 301 | return attr == nullptr || attr->tag == bthread::tls_task_group->tag() || |
| 302 | attr->tag == BTHREAD_TAG_INVALID; |
| 303 | } |
| 304 | |
| 305 | struct TidTraits { |
| 306 | static const size_t BLOCK_SIZE = 63; |
no test coverage detected