エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
How do I create a queue that holds boost::packaged_task<> with functions that return arbitrary types?
記事へのコメント2件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
How do I create a queue that holds boost::packaged_task<> with functions that return arbitrary types?
I'm trying to construct a work queue of functions that need to be executed by one thread and can ... I'm trying to construct a work queue of functions that need to be executed by one thread and can be fed by many threads. To accomplish this, I was planning on using the boost::packaged_task and boost::unique_future. The idea would be you would do: Foo value = queue.add(myFunc).get(); which would block, until the function is executed. So queue.add(...) takes in a boost::function, and returns a boos



2013/09/02 リンク