Skip to content
Tcl Source Code Artifact [178c9b11c6]
Login

Artifact [178c9b11c6]

Artifact 178c9b11c6547fe3946eed68496e0394d6c47fc6:

Ticket change [178c9b11c6] - Ticket [932314ffffffffff|932314ffff] <i>epoch safety in threads?</i> status still Open with 4 other changes by vasiljevic on 2004-06-09 21:23:30.
D 2004-06-09T21:23:30
J icomment Logged\sIn:\sYES\s\nuser_id=95086\n\nHi\sDon\s!\n\nI'm\ssorry\sfor\snot\sattending\sto\sthis\sbefore.\n\nI\sagree\sabout\sTcl_FSGetFileSystemForPath().\sIndeed\s\nthe\sTclFSEnsureEpochOk()\sshould\sbe\scalled\safter\nthe\sFsGetFirstFilesystem().\s\n\nNow,\sfor\skeeping\sthe\sper-thread\scaches\sin\ssync...\nAs\slong\sas\sthere\sis\sa\sgood\s*isolation*\sbetween\sthe\nmaster-copy\sand\sper-thread-copy\sI\sdo\snot\ssee\sany\nproblems.\sThe\smaster\scopy\sis\sactually\snever\saccessed\ndirectly.\sIt\sis\salso\stimestamped\swith\sthe\sper-thread\sprivate\none\sso\sall\spath-gymnastics\sreferencing\sany\sfilesystem\nrecords\smust\sgo\sthru\sthe\sisolation\slayer.\sIt\sis\sthe\nresponsibility\nof\sthat\slayer\sto\skeep\sthose\stwo\sreps\sin\ssync.\n\nThe\sprincipal\sidea\swhy\sthis\sper-thread\scopy\sis\sintroduced\nwas\sto\saleviate\smt-problems\swe\sfound\sout\sin\sthe\sAOLserver\nproject\swhich\suses\sTcl\s(threaded\sbuild)\sheavily.\sAfter\sthe\nintroduction\sof\sTcl\sFS\sin\s8.4\squite\sa\sfew\sthings\sbroke\sin\s\nmt-respect\sso\swe\swere\sforced\sto\sdo\ssomething.\sAfter\sthe\nexamination\swe\sdecided\sthat\sit\swould\sbe\sthe\sbest\sto\s\nseparate\sthe\smaster\s(thread-wide)\sand\sprivate\s(per-thread)\nviews\sof\sregistered\sfilesystems.\sOtherwisem\sthe\sproblems\sof\nsynchronization\swould\sbe\svery\sdifficult,\sif\spossible\sat\sall,\ngiven\sthe\scurrent\simplementation\sof\sFS.\s\n\nNow,\sI\sunderstand\sthat\syou\ssee\ssome\sproblems\swith\sthat.\nCan\syou\splease\sbe\smore\sspecific\sabout\swhich\sproblems\nyou\sare\sthinking\sof?\sI\swill\sbe\sglad\sto\sreview\sthem\swith\syou\nand,\sif\snecessary,\scorrect\sor\simprove\sthe\scurrent\scode.\n\nIf\syou\sdon't\smind\sI\scan\sreassign\sthis\sbug\sto\smyself.\n\nZoran\n\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 932314ffffffffffffffffffffffffffffffffff
U vasiljevic
Z fe1e6d277c25b502bae2b8706fa32373