|
|
@@ -376,11 +376,11 @@ int sp_iom_run(sp_iom_t *iom)
|
|
|
#ifdef _WIN32
|
|
|
InterlockedExchangeAdd((LONG*)&iom->stop, 0) == 0
|
|
|
#else
|
|
|
- /*the adapte func 'InterlockedExchangeAdd' implemented under winpr went wrong*/
|
|
|
+ /*the adapte func 'InterlockedExchangeAdd' implemented under winpr went wrong, maybe 64bit has responsibility*/
|
|
|
iom->stop == 0
|
|
|
#endif //_WIN32
|
|
|
|| timer_queue_get_count(iom->tm_queue) > 0)
|
|
|
- {
|
|
|
+{
|
|
|
int rc = sp_iom_poll(iom, &timeout);
|
|
|
if (rc >= 0) {
|
|
|
if (timeout > POLL_INTERVAL || timeout < 0)
|