mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 22:40:36 -04:00
Switched base class of TokenQueue from QWidget to QObject.
Fixed unlock of the mutex in TokenQueue. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5949 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
de757cfcae
commit
0c49fba4d8
2 changed files with 39 additions and 31 deletions
|
@ -67,7 +67,7 @@ public:
|
|||
* An important thing to note is that all requests are stacked (so FIFO)
|
||||
* This is to prevent overlapped loads on GXS UIs
|
||||
*/
|
||||
class TokenQueue: public QWidget
|
||||
class TokenQueue: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -100,8 +100,9 @@ public:
|
|||
bool checkForRequest(uint32_t token);
|
||||
void loadRequest(const TokenRequest &req);
|
||||
|
||||
bool activeRequestExist(const uint32_t& userType);
|
||||
void activeRequestTokens(const uint32_t& userType, std::list<uint32_t>& tokens);
|
||||
bool activeRequestExist(const uint32_t& userType);
|
||||
void activeRequestTokens(const uint32_t& userType, std::list<uint32_t>& tokens);
|
||||
|
||||
protected:
|
||||
void doPoll(float dt);
|
||||
|
||||
|
@ -114,7 +115,7 @@ private:
|
|||
|
||||
RsTokenService *mService;
|
||||
TokenResponse *mResponder;
|
||||
QMutex mTokenMtx;
|
||||
QMutex mTokenMtx;
|
||||
|
||||
QTimer *mTrigger;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue