| 632 | } |
| 633 | |
| 634 | int bthread_list_join(bthread_list_t* list) { |
| 635 | if (list->impl == NULL) { |
| 636 | return EINVAL; |
| 637 | } |
| 638 | static_cast<bthread::TidList*>(list->impl)->apply(bthread::TidJoiner()); |
| 639 | return 0; |
| 640 | } |
| 641 | |
| 642 | bthread_tag_t bthread_self_tag(void) { |
| 643 | return bthread::tls_task_group != nullptr ? bthread::tls_task_group->tag() |