| 46 | }; |
| 47 | |
| 48 | int add(void* meta, bthread::TaskIterator<LongIntTask> &iter) { |
| 49 | stopped = iter.is_queue_stopped(); |
| 50 | int64_t* result = (int64_t*)meta; |
| 51 | for (; iter; ++iter) { |
| 52 | *result += iter->value; |
| 53 | if (iter->event) { iter->event->signal(); } |
| 54 | } |
| 55 | return 0; |
| 56 | } |
| 57 | |
| 58 | void test_single_thread(bool use_pthread) { |
| 59 | int64_t result = 0; |
nothing calls this directly
no test coverage detected