diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-03 16:02:14 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-03 16:02:14 +0200 |
commit | 3ad2582c4a4a6378f294f9256ecbcbdf0ae88e3a (patch) | |
tree | 412a28ef6a572efc7039df1c363bf47a3dec4b19 /protocols/IcqOscarJ/src/icq_rates.cpp | |
parent | 9a6f750a482d1d1ebf4281bb7bf8133e547ad438 (diff) |
mir_forkThread<typename> - stronger typizatioin for thread function parameter
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_rates.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_rates.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/IcqOscarJ/src/icq_rates.cpp b/protocols/IcqOscarJ/src/icq_rates.cpp index dfc42bbe7c..c34acddfc8 100644 --- a/protocols/IcqOscarJ/src/icq_rates.cpp +++ b/protocols/IcqOscarJ/src/icq_rates.cpp @@ -299,10 +299,9 @@ rates_queue::~rates_queue() cleanup();
}
-static void rateDelayThread(void *param)
+static void rateDelayThread(rates_queue *pQueue)
{
Thread_SetName("ICQ: rateDelayThread");
- rates_queue *pQueue = (rates_queue*)param;
pQueue->handleDelay();
}
@@ -311,7 +310,7 @@ void rates_queue::initDelay(int nDelay) ppro->debugLogA("Rates: Delay %dms", nDelay);
scheduledDelay = nDelay;
- mir_forkthread(rateDelayThread, this);
+ mir_forkThread<rates_queue>(rateDelayThread, this);
}
void rates_queue::handleDelay()
|