mirror of
https://github.com/curl/curl.git
synced 2026-08-13 02:30:52 +03:00
time-keeping: keep timestamp in multi, always update
Always use curlx_now() when calling Curl_pgrs_now(data). Tests with the "manual" updates to now proved differ more then 100ms in parallel testing. Add `curlx_nowp()` to set current time into a struct curltime. Add `curlx_ptimediff_ms() and friends, passing pointers. Update documentation. Closes #19998
This commit is contained in:
parent
308c347c8b
commit
b4be1f271e
61 changed files with 471 additions and 502 deletions
|
|
@ -33,8 +33,7 @@ void Curl_expire_ex(struct Curl_easy *data,
|
|||
timediff_t milli, expire_id id);
|
||||
bool Curl_expire_clear(struct Curl_easy *data);
|
||||
void Curl_expire_done(struct Curl_easy *data, expire_id id);
|
||||
CURLMcode Curl_update_timer(struct Curl_multi *multi,
|
||||
struct curltime *pnow) WARN_UNUSED_RESULT;
|
||||
CURLMcode Curl_update_timer(struct Curl_multi *multi) WARN_UNUSED_RESULT;
|
||||
void Curl_attach_connection(struct Curl_easy *data,
|
||||
struct connectdata *conn);
|
||||
void Curl_detach_connection(struct Curl_easy *data);
|
||||
|
|
@ -163,4 +162,6 @@ void Curl_multi_mark_dirty(struct Curl_easy *data);
|
|||
/* Clear transfer from the dirty set. */
|
||||
void Curl_multi_clear_dirty(struct Curl_easy *data);
|
||||
|
||||
void Curl_multi_set_now(struct Curl_multi *multi);
|
||||
|
||||
#endif /* HEADER_CURL_MULTIIF_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue