curl-library
Re: Threads library
Date: Wed, 18 Jan 2006 22:46:56 -0800 (PST)
Hello Karl,
Check out the libcurl manpage for curl_share_setopt
and then use CRITICAL_SECTION objects and the critical
section APIs (EnterCriticalSection(),
LeaveCriticalSection()) within the callbacks. The
libcurl share interface is smart enough to issue the
share callbacks in situations where thread
synchronization MAY need to be dealt with.
Once you get the Windows stuff working, then you can
do #ifdefs to handle those platforms where you may
want to use pthread synchronization.
Take care,
Jeff Phillips
--- Karl M <karlm30_at_hotmail.com> wrote:
> Hi All...
>
> Is there a preferred threads library to use in
> conjunction with libcurl?
>
> Is any flavor of treads easier to build with or are
> there any conflicts to
> watch out for?
>
> My immediate use is on windows xp/2000, but the
> fewer restrictions I create,
> the better off I am.
>
> Thanks,
>
> ...Karl
>
>
>
Received on 2006-01-19