boostorg / boostorg/fiber

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

Đang mở
#327 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C++
Star
510
Fork
123
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.