输出非结构化日志。

This commit is contained in:
zhengchao
2018-12-24 22:47:26 +06:00
parent 67c488bcc1
commit 6cbe6e7b9c
4 changed files with 107 additions and 4 deletions

View File

@@ -144,6 +144,10 @@ static void __promise_destroy(struct promise *p)
struct promise * future_to_promise(struct future * f)
{
if(f==NULL)
{
return NULL;
}
struct promise *p=__future_to_promise(f);
p->ref_cnt++;
assert(p->ref_cnt==2);