feat(mq): add mq_runtime_defer, default disable

This commit is contained in:
yangwei
2024-10-18 14:04:19 +08:00
parent 65ae531ee3
commit 722ae7483b
5 changed files with 41 additions and 17 deletions

View File

@@ -42,6 +42,7 @@ int mq_schema_subscribe(struct mq_schema *s, int topic_id, on_msg_cb_func *on_ms
struct mq_runtime;
struct mq_runtime *mq_runtime_new(struct mq_schema *s);
void mq_runtime_defer(struct mq_runtime *rt);
void mq_runtime_free(struct mq_runtime *s);
// return 0 if success, otherwise return -1