cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: how to write the lock funcition in share interface

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 19 Jan 2006 23:57:33 +0100 (CET)

On Thu, 19 Jan 2006, Yi Li wrote:

> I witten a program to use share interface in multi_thread environment.

...

> I'm not sure if I writen the program correctly. the attachment is the
> program.

This program doesn't set the lock or unlock function callbacks with
curl_share_setopt(), so using this share multi-threaded is bound to cause a
memory mess.

What parts of the docs did you think was so bad that made you skip this?

         http://curl.haxx.se/libcurl/c/libcurl-share.html

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-01-20