1
0
Fork 0
forked from lthn/blockchain

added more logs for async api

This commit is contained in:
cryptozoidberg 2020-02-28 01:36:29 +01:00
parent 1fc7690b74
commit a51b9b4ba6
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -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)