[fiber] Asio autoecho example crashes (VS 2015 u3)

Hi all, I'm found that asio autoecho example crashes after main's return statement. Debugger shows write access from the fiber scheduler to the already destroed io_service. Substitution reference to io_service: boost::asio::io_service & io_svc_; in round_robin algo to the shared_ptr: boost::shared_ptrboost::asio::io_service io_svc_; with approprieate correction of the other code solves the problem. Maybe I misunderstood something in the descrition from documentation? Or its some kind of feature? -- View this message in context: http://boost.2283326.n4.nabble.com/fiber-Asio-autoecho-example-crashes-VS-20... Sent from the Boost - Users mailing list archive at Nabble.com.

changed in examples, thx it's not easy to synchronize two event dispatcher/schedulers, e.g. boost.asio's io_service + boost.fiber's fiber-scheduler

yes, i realized this from documetation) after some profiling and changing queue in "work_sharing" example to lock-free i got about 4x performance increasing: profiler shows that most of time it spends to lock/unlock. Any plans to add more sheduler alogo? -- View this message in context: http://boost.2283326.n4.nabble.com/fiber-Asio-autoecho-example-crashes-VS-20... Sent from the Boost - Users mailing list archive at Nabble.com.

2016-10-11 7:16 GMT+02:00 DePizzottri
yes, i realized this from documetation)
after some profiling and changing queue in "work_sharing" example to lock-free i got about 4x performance increasing: profiler shows that most of time it spends to lock/unlock. Any plans to add more sheduler alogo?
yes, I've some experimental queue impls which type of lock-free queue did you use (chase_lev algorithm)?

just replaced queue to this https://github.com/cameron314/concurrentqueue https://github.com/cameron314/concurrentqueue I think work stealing should give even more performance. -- View this message in context: http://boost.2283326.n4.nabble.com/fiber-Asio-autoecho-example-crashes-VS-20... Sent from the Boost - Users mailing list archive at Nabble.com.
participants (2)
-
DePizzottri
-
Oliver Kowalke