boost::thread::attributes attrs;
pthread_attr_setschedpolicy(attrs.native_handle(), SCHED_RR);
sendThread = boost::thread(attrs,&sender::sendItThreadFunction,this);
unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]); /// Error: Type 'boost::thread_attributes‘ does not provide a call operator
}
I compared this call with the one from the old bind.hpp (of version 1.45) and noticed that both are equal.
Now I wonder if I am still messing it up or if something else is probably wrong.
Please let me know.
Thanks,
best
Alex
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-usersLe 07/12/14 18:04, Alexander Carôt a écrit :
Just done (https://github.com/boostorg/thread/commit/063b59e511a2bfd323b0fcdd06c3499473fa18db).Hello Vincente,
thanks a lot for your quick response !
>>Sorry, the tutorial is wrong. It should be native_handle()
I have one more: On the same document the Thread attributes chapter starts with the exampleattrs.set_size(4096*10);Her it has to be set_stack_size as in the example below. Maybe you can find some time to fix it.
Thanks for reporting,
Vicente