-
int rb_thread_select(int max, fd_set *read, fd_set *write, fd_set *except, struct timeval *timeout) -
Ruby のスレッドは実装のために内部で select(2) を使っているため、拡張ライブラリ内で独自に select(2) を使った場合の動作は保証されません。代わりにこの関数 rb_thread_select を使ってください。引数の意味は select(2) と同じです。
このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
int rb_thread_select(int max, fd_set *read, fd_set *write, fd_set *except, struct timeval *timeout)
Ruby のスレッドは実装のために内部で select(2) を使っているため、拡張ライブラリ内で独自に select(2) を使った場合の動作は保証されません。代わりにこの関数 rb_thread_select を使ってください。引数の意味は select(2) と同じです。