
20 Apr
2007
20 Apr
'07
11:50 p.m.
Rene Rivera wrote:
Not that the use case makes any sense to me :-( So I'm still guessing as to what you want to achieve with thread safety here.
The idea is that the function f - if we use an ordinary C callback instead of make_c_function - is thread safe when called at the same time from multiple threads to sort different arrays. make_c_function breaks this thread safety because of its assignments to the underlying boost::function. I think.