&mut -> & of session in event loop#572
Conversation
To process session from multiple threads, we need to use the session as `&session` instead of `&mut session`, so the session can be put into `Arc` or something. This PR extracts `event_loop` function to handle all requests except init and destroy, and handles `FUSE_DESTROY` outside of event loop.
0f90288 to
64df14d
Compare
|
Can you say more about how you're planning to implement the multi-threading? I haven't looked into it very much, but this PR: #421 adds an op to clone the /dev/fuse fd and then create multiple sessions. |
|
My idea was this: you pass a parameter to session creation, number of threads. Then So that fuser library manages threads. That PR exposes low level operation That said, exposing low level parts of working with FUSE may have its use. |
|
Cool, thanks. Ya, that outline looks good to me |
To process session from multiple threads, we need to use the session as
&sessioninstead of&mut session, so the session can be put intoArcor something.This PR extracts
event_loopfunction to handle all requests except init and destroy, and handlesFUSE_DESTROYoutside of event loop.