Pipe read() never blocks, and poll() ignores timeouts

オープン
#27,683 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp, wasm

調査の方向性

まず、JSPI を有効にした状態で、ブロッキングする pipe read() と poll() の pthreads-only の動作を再現します。次に、read() と poll() のエントリポイントを追跡し、関連する Issue #25759、#20615、#19447、#16704、#16047 と比較します。pipe read() が期待どおりブロックし、poll() がすぐに返るのではなくタイムアウトを尊重すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I have run into serious issues that make communication between pthreads, completely off the browser or main thread, totally broken. First is that read() on a pipe that should be blocking, instead returns immediately. And second, poll ignores its timeout parameter and also returns immediately.

This has been a persistent issue that seems to be ignored:

#25759, #20615, #19447, #16704, #16047

I am creating a new issue hoping for some attention to this issue. Now that JSPI and pthreads are available, I don't think there's any reason not to implement this correctly.

主要言語
C++
スター
27.8k
フォーク
3.6k
平均マージ
1日 6時間
マージ済み PR(30日)
181

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

emscripten-core/emscripten のほかの issue

emscripten-core/emscripten の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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