diff options
author | George Hazan <george.hazan@gmail.com> | 2015-03-12 20:28:50 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-03-12 20:28:50 +0000 |
commit | d42e00ade03da9d1ac5c642bc32aa648fbe0c1d2 (patch) | |
tree | 711ef7d017fa2c0032986d59addb4ba635e13387 /protocols/IcqOscarJ/src/icq_rates.h | |
parent | 2d1dc453e3550d8f8b3796a376f26e7ddee58caa (diff) |
another hand-made list destroyed
git-svn-id: http://svn.miranda-ng.org/main/trunk@12388 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_rates.h')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_rates.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/protocols/IcqOscarJ/src/icq_rates.h b/protocols/IcqOscarJ/src/icq_rates.h index c0977b4f72..9c6607d910 100644 --- a/protocols/IcqOscarJ/src/icq_rates.h +++ b/protocols/IcqOscarJ/src/icq_rates.h @@ -123,16 +123,18 @@ typedef void (rates_queue::*IcqRateFunc)(void); //
class rates_queue : public MZeroedObject
{
- CIcqProto *ppro;
+ CIcqProto *ppro;
const char *szDescr;
+ int duplicates;
+
mir_cs listsMutex; // we need to be thread safe
- int pendingListSize;
- rates_queue_item **pendingList;
- int duplicates;
+ LIST<rates_queue_item> lstPending;
+
protected:
void cleanup();
void processQueue();
void initDelay(int nDelay, IcqRateFunc delaycode);
+
public:
rates_queue(CIcqProto *ppro, const char *szDescr, int nLimitLevel, int nWaitLevel, int nDuplicates = 0);
~rates_queue();
|