boostorg / boostorg/fiber

Suspended scheduling algorithms (work_stealing or shared_work) not notified when work is scheduled from another thread

オープン
#327 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
510
フォーク
123
PR マージ指標
30日以内にマージされた PR はありません

説明

I have a pool of worker threads and I want to schedule fibers onto this pool from the main thread, without running any of these worker fibers on the main thread itself. I'm doing this using the `shared_work` (or `work_stealing`) algorithm.

If I set the `suspend` option to `true` to prevent the worker threads busy-waiting when they have no work the worker fibers never run because the algorithms on the worker threads aren't notified when work is pushed onto the queue from the main thread.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。