/* * Post completion status to the specified operation key and call the * appropriate callback. */ PJ_DEF(pj_status_t) pj_ioqueue_post_completion( pj_ioqueue_key_t *key, pj_ioqueue_op_key_t *op_key, pj_ssize_t bytes_status ) { if (pj_ioqueue_is_pending(key, op_key)) { key->cbObj->CancelOperation(op_key, bytes_status); } return PJ_SUCCESS; }
inline bool Pj_Async_Op::is_pending() { return pj_ioqueue_is_pending(handler_->key_, this) != 0; }