forked from lthn/blockchain
added more logs for async api
This commit is contained in:
parent
1fc7690b74
commit
a51b9b4ba6
1 changed files with 2 additions and 0 deletions
|
|
@ -207,6 +207,7 @@ namespace plain_wallet
|
|||
{
|
||||
CRITICAL_REGION_LOCAL(gjobs_lock);
|
||||
gjobs[job_id] = res;
|
||||
LOG_PRINT_L0("[ASYNC_CALL]: Finished(result put), job id: " << job_id);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -265,6 +266,7 @@ namespace plain_wallet
|
|||
};
|
||||
}
|
||||
std::thread([async_callback]() {async_callback(); });
|
||||
LOG_PRINT_L0("[ASYNC_CALL]: started " << method_name << ", job id: " << job_id);
|
||||
return job_id;
|
||||
}
|
||||
std::string try_pull_result(uint64_t job_id)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue