diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2012-08-08 10:32:39 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2012-08-08 10:32:39 (GMT) |
commit | a130a8ddcf0c1ad3d5b3521fd6304e1850b60997 (patch) | |
tree | 5ac50dfaff7dde2e41e507277f70fefdbbda6be3 /generic/tclIOUtil.c | |
parent | 6aee63effa88b49ebd875a8f1615454f842820f2 (diff) | |
parent | 801097f82faf5fefd9787952fc0ffb91c248f9ca (diff) | |
download | tcl-a130a8ddcf0c1ad3d5b3521fd6304e1850b60997.zip tcl-a130a8ddcf0c1ad3d5b3521fd6304e1850b60997.tar.gz tcl-a130a8ddcf0c1ad3d5b3521fd6304e1850b60997.tar.bz2 |
merge trunk
FossilOrigin-Name: 27388707f2261df4c934c2c8b7e275db6dd2ddf8
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r-- | generic/tclIOUtil.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c index 115c132..2d6d898 100644 --- a/generic/tclIOUtil.c +++ b/generic/tclIOUtil.c @@ -460,6 +460,7 @@ FsThrExitProc( ckfree(fsRecPtr); fsRecPtr = tmpFsRecPtr; } + tsdPtr->filesystemList = NULL; tsdPtr->initialized = 0; } @@ -647,23 +648,26 @@ TclFSEpochOk( } static void -Claim() +Claim(void) { ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&fsDataKey); + tsdPtr->claims++; } static void -Disclaim() +Disclaim(void) { ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&fsDataKey); + tsdPtr->claims--; } int -TclFSEpoch() +TclFSEpoch(void) { ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&fsDataKey); + return tsdPtr->filesystemEpoch; } |