Multithread in ruby-dbus
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 20/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- ruby
调研方向
Start by reading the update_buffer function and its IO.select usage, which the issue identifies as the source of the multithreading problem. Trace how requests and responses are associated with threads, then determine whether the proposed dispatch design is viable; done would require an agreed implementation direction, not just a patch.
由索引模型根据 Issue 内容生成。
描述
Hi,
We quite need for our project to use ruby-dbus multhreaded. This feature is not supported as reported in 20 - 21 -22. We are thinking about an implementation and we want to have an enlightened opinion before coding it.
The problem seems to be due to update_buffer function and IO.select. Update_buffer function doesn’t know from which does come the previous request and the first thread that take IO.select income takes the request. A way to solve it may be to dedicate a thread that wait IO.select and return the buffer to the according thread:
if message-type is METHOD_CALL or SIGNAL, return to main thread.
if MESSAGE_RETURN, return to concerned thread. To do so, we need when sending a message to log in a hash (for example) the thread it cames from.
The thread will wait a Thread.stop and will be restarted from the dedicated one with a Thread.run
Do you agree with this implementation, do you see limitations from that ?
- 主要语言
- Ruby
- 星标
- 174
- 派生
- 51
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mvidner/ruby-dbus 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 25/100
-
NetworkManager.Settings.Connection cannot round-trip, calling Update with what GetSettings returned未关闭
难度 4/5 3-5 天 新手友好度 35/100
-
good first issue
难度 2/5 1-3 小时 新手友好度 45/100
-
难度 5/5 一周以上 新手友好度 25/100
查看 mvidner/ruby-dbus 的全部 Issue
相似的 Issue
-
enhancement
难度 1/5 1 小时以内 新手友好度 85/100
cloudflare/mcp#271 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
zerocracy/swarm-template#302 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
IHP-GmbH/IHP-Open-PDK#1266 ·
维护者通常 2 天内回复
-
Source Support
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
we-promise/sure#4056 ·
维护者通常 1 天内回复