diff options
Diffstat (limited to 'lib/share.h')
-rw-r--r-- | lib/share.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/share.h b/lib/share.h index ea6f2f1ce..76e6244d7 100644 --- a/lib/share.h +++ b/lib/share.h @@ -30,15 +30,24 @@ /* this struct is libcurl-private, don't export details */ struct Curl_share { unsigned int specifier; - unsigned int locked; - unsigned int dirty; + volatile unsigned int dirty; curl_lock_function lockfunc; curl_unlock_function unlockfunc; void *clientdata; + + curl_hash *hostcache; }; -CURLSHcode Curl_share_aquire_lock (struct SessionHandle *, curl_lock_data); -CURLSHcode Curl_share_release_lock (struct SessionHandle *, curl_lock_data); +CURLSHcode Curl_share_lock ( + struct SessionHandle *, + curl_lock_data, + curl_lock_access + ); + +CURLSHcode Curl_share_unlock ( + struct SessionHandle *, + curl_lock_data + ); #endif /* __CURL_SHARE_H */ |