| 3242 | } |
| 3243 | |
| 3244 | static pn_event_t *proactor_batch_next(pn_event_batch_t *batch) { |
| 3245 | pn_proactor_t *p = batch_proactor(batch); |
| 3246 | pn_event_t *e = pn_collector_next(p->collector); |
| 3247 | if (!e) { |
| 3248 | csguard g(&p->context.cslock); |
| 3249 | proactor_update_batch(p); |
| 3250 | e = pn_collector_next(p->collector); |
| 3251 | } |
| 3252 | if (e && pn_event_type(e) == PN_PROACTOR_TIMEOUT) |
| 3253 | p->timeout_processed = true; |
| 3254 | return pni_log_event(p, e); |
| 3255 | } |
| 3256 | |
| 3257 | static void proactor_add(pcontext_t *ctx) { |
| 3258 | pn_proactor_t *p = ctx->proactor; |
nothing calls this directly
no test coverage detected