Skip to content
Commit 151cb59e authored by Marco Trevisan (Treviño)'s avatar Marco Trevisan (Treviño) Committed by Phaedrus Leeds
Browse files

document-portal-fuse: Ensure that session is never destroyed while in use

The fuse session (that is owned by the fuse thread) may be used from
the main thread in some cases, but this may happen also just before the
owner thread is about to destroy and nullify it, possibly causing to
use invalid data.

To avoid this, use a mutex to protect the access to the session that always
ensures that nobody else is currently using it.
In this way, while is owned by the main (or another) thread, the fuse
thread can't unset and destroy it until the owner has not done with it.
parent 2dbfacdf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment