Overview
| Artifact ID: | 178c9b11c6547fe3946eed68496e0394d6c47fc6 |
|---|---|
| Ticket: | 932314ffffffffffffffffffffffffffffffffff
epoch safety in threads? |
| User & Date: | vasiljevic on 2004-06-09 21:23:30 |
Changes
- icomment:
Logged In: YES user_id=95086 Hi Don ! I'm sorry for not attending to this before. I agree about Tcl_FSGetFileSystemForPath(). Indeed the TclFSEnsureEpochOk() should be called after the FsGetFirstFilesystem(). Now, for keeping the per-thread caches in sync... As long as there is a good *isolation* between the master-copy and per-thread-copy I do not see any problems. The master copy is actually never accessed directly. It is also timestamped with the per-thread private one so all path-gymnastics referencing any filesystem records must go thru the isolation layer. It is the responsibility of that layer to keep those two reps in sync. The principal idea why this per-thread copy is introduced was to aleviate mt-problems we found out in the AOLserver project which uses Tcl (threaded build) heavily. After the introduction of Tcl FS in 8.4 quite a few things broke in mt-respect so we were forced to do something. After the examination we decided that it would be the best to separate the master (thread-wide) and private (per-thread) views of registered filesystems. Otherwisem the problems of synchronization would be very difficult, if possible at all, given the current implementation of FS. Now, I understand that you see some problems with that. Can you please be more specific about which problems you are thinking of? I will be glad to review them with you and, if necessary, correct or improve the current code. If you don't mind I can reassign this bug to myself. Zoran
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"