curl-library
Re: Share interface locking functions
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 5 Oct 2004 14:27:54 +0200 (CEST)
Date: Tue, 5 Oct 2004 14:27:54 +0200 (CEST)
On Tue, 5 Oct 2004, Andrés García wrote:
> What is libcurl expecting the locking functions to do? According to the man
> page the user must ensure there is only one lock given at any time for each
> kind of data, but how do I tell libcurl whether the lock has been granted?
You should make your function not return until the lock has been granted!
There's nothing in libcurl that can handle not getting the lock, so you should
simply wait until you get it.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-10-05