removed waitToken from GxsTokenService since it was only used directly by rsGenExchange to export keys

This commit is contained in:
csoler 2020-03-17 23:33:03 +01:00
parent 5408427ea8
commit 676ddfbfb5
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
3 changed files with 63 additions and 14 deletions

View file

@ -222,6 +222,7 @@ public:
*/
virtual bool cancelRequest(const uint32_t &token) = 0;
#ifdef TO_REMOVE
/**
* Block caller while request is being processed.
* Useful for blocking API implementation.
@ -231,8 +232,8 @@ public:
*/
RsTokenService::GxsRequestStatus waitToken(
uint32_t token,
std::chrono::milliseconds maxWait = std::chrono::milliseconds(500),
std::chrono::milliseconds checkEvery = std::chrono::milliseconds(2),
std::chrono::milliseconds maxWait = std::chrono::milliseconds(10000),
std::chrono::milliseconds checkEvery = std::chrono::milliseconds(20),
bool auto_delete_if_unsuccessful=true)
{
#if defined(__ANDROID__) && (__ANDROID_API__ < 24)
@ -276,6 +277,7 @@ LLwaitTokenBeginLabel:
return st;
}
#endif
RS_SET_CONTEXT_DEBUG_LEVEL(2)
};