summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/icq_rates.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_rates.h')
-rw-r--r--protocols/IcqOscarJ/src/icq_rates.h10
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();