While working on a Tcl_Filesystem
bug (932314), the comments raised
several possible different ways
to keep the per-thread cache
of the list of Tcl_Filesystems
in sync with a master list.
These included
a) Use of Concurrent Read /
Exclusive Write (CREW) locks.
b) Changing the whole Tcl_Filesystem
implementation to manage filesystem
registration either per-thread or
per-interp, rather than keeping
it process global with a master list.
On the HEAD we might also consider
whether the new ProcessGlobalValue
struct solves the right problems to
be of use here.
This report opened as a place to
continue consideration of these
possibilities, while closing the
bug, which is long fixed.
|