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:
thunder2 2012-12-06 17:51:07 +00:00
parent de757cfcae
commit 0c49fba4d8
2 changed files with 39 additions and 31 deletions

View file

@ -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;
};