From d42e00ade03da9d1ac5c642bc32aa648fbe0c1d2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 12 Mar 2015 20:28:50 +0000 Subject: another hand-made list destroyed git-svn-id: http://svn.miranda-ng.org/main/trunk@12388 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/src/icq_rates.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'protocols/IcqOscarJ/src/icq_rates.h') 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 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(); -- cgit v1.2.3