N******K 发帖数: 10202 | | p*u 发帖数: 2454 | 2
never used it, don't want to either...
【在 N******K 的大作中提到】 : 有什么评价?
| l*********s 发帖数: 5409 | 3 never used, but looks very convenient. | t****t 发帖数: 6806 | 4 没什么特别的, 就是对native api的包装, 比如native pthread start function只能
带一个固定的void*参数, std::thread就没有限制等等
基本上就是std::function和pthread的结合, 当然方便是肯定的, 这没话说. 我现在只
用这个了.
【在 N******K 的大作中提到】 : 有什么评价?
| N******K 发帖数: 10202 | 5 http://akrzemi1.wordpress.com/2012/11/14/not-using-stdthread/
对这篇文章有何看法?
【在 t****t 的大作中提到】 : 没什么特别的, 就是对native api的包装, 比如native pthread start function只能 : 带一个固定的void*参数, std::thread就没有限制等等 : 基本上就是std::function和pthread的结合, 当然方便是肯定的, 这没话说. 我现在只 : 用这个了.
| t****t 发帖数: 6806 | 6 没看法, 我觉得他说的跟用不用std::thread关系不大. 线程里的exception总是要分开
处理的.
【在 N******K 的大作中提到】 : http://akrzemi1.wordpress.com/2012/11/14/not-using-stdthread/ : 对这篇文章有何看法?
| k**********g 发帖数: 989 | 7
The C++ multithreading gurus should study the Microsoft implementation of
Parallel Patterns Library. http://msdn.microsoft.com/en-us/library/dd492418.aspx
Even if one has a hatred for Microsoft, one must admit that PPL is one
advanced implementation of a concurrency (and multithreading) library where
a lot of design effort has been invested.
C++ already has mechanism for capturing the exception thrown in one thread,
and rethrowing or retrieving it from a different thread.
【在 N******K 的大作中提到】 : http://akrzemi1.wordpress.com/2012/11/14/not-using-stdthread/ : 对这篇文章有何看法?
|
|