mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-09 06:42:19 -04:00
removed waitToken from GxsTokenService since it was only used directly by rsGenExchange to export keys
This commit is contained in:
parent
5408427ea8
commit
676ddfbfb5
3 changed files with 63 additions and 14 deletions
|
@ -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)
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue