Skip to main content

in reply to daniel:// stenberg://

While I see this picture, - and I'm just curious - what was the reason to implement resource locking (mutexes) not by a backend but let the user do it on their own via callbacks? (ref: curl.se/libcurl/c/CURLSHOPT_LO…)
This entry was edited (4 months ago)
in reply to Enno T. Boland

@Gottox because there is no universal locking so i thought it was best to let the application do it the way it knows works for them
in reply to daniel:// stenberg://

hm, I always thought the mutex implementation only differed by platform.

I'm facing a similiar issue with github.com/Gottox/sqsh-tools and wondering if I should provide callback interfaces or instead use pthread mutexes on unix and win32 mutexes on windows.

This entry was edited (4 months ago)
in reply to Enno T. Boland

@Gottox pthread is just a library on *nix, where at least historically there were and could be others. Even if of course in reality there rarely are.
in reply to daniel:// stenberg://

Ah, okay. I don't care about historic interfaces too much at the moment. But I now understand the reasons for your implementation. Thanks you!
in reply to daniel:// stenberg://

I love #curl. It is a very nice and useful piece of #softwae. I use it i #C++, #Java, #PHP and other for any type of secure connection. Keep on with that great job!