mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
lib1564/5: verify that curl_multi_wakeup returns OK
This commit is contained in:
parent
3a63c190bb
commit
6cd066f64b
@ -61,7 +61,7 @@ int test(char *URL)
|
|||||||
|
|
||||||
/* try a single wakeup */
|
/* try a single wakeup */
|
||||||
|
|
||||||
multi_wakeup(multi);
|
res_multi_wakeup(multi);
|
||||||
|
|
||||||
time_before_wait = tutil_tvnow();
|
time_before_wait = tutil_tvnow();
|
||||||
multi_poll(multi, NULL, 0, 1000, &numfds);
|
multi_poll(multi, NULL, 0, 1000, &numfds);
|
||||||
@ -94,7 +94,7 @@ int test(char *URL)
|
|||||||
/* try lots of wakeup */
|
/* try lots of wakeup */
|
||||||
|
|
||||||
for(i = 0; i < WAKEUP_NUM; ++i)
|
for(i = 0; i < WAKEUP_NUM; ++i)
|
||||||
multi_wakeup(multi);
|
res_multi_wakeup(multi);
|
||||||
|
|
||||||
time_before_wait = tutil_tvnow();
|
time_before_wait = tutil_tvnow();
|
||||||
multi_poll(multi, NULL, 0, 1000, &numfds);
|
multi_poll(multi, NULL, 0, 1000, &numfds);
|
||||||
|
@ -70,7 +70,7 @@ static void *run_thread(void *ptr)
|
|||||||
|
|
||||||
pthread_mutex_unlock(&lock);
|
pthread_mutex_unlock(&lock);
|
||||||
|
|
||||||
multi_wakeup(multi);
|
res_multi_wakeup(multi);
|
||||||
}
|
}
|
||||||
|
|
||||||
test_cleanup:
|
test_cleanup:
|
||||||
|
Loading…
Reference in New Issue
Block a user