Skip to content
Tcl Source Code Artifact [15831dc015]
Login

Artifact [15831dc015]

Artifact 15831dc0150856212dd82d8e35b4d8595b602f7ef4543cbadb7e5c6e2e754b15:

Ticket change [15831dc015] - Ticket [17f747a4a4720f8e|17f747a4a4] <i>Thread safety in tclZipfs.c</i> status still Open with 3 other changes by hypnotoad on 2017-11-21 12:05:46.
D 2017-11-21T12:05:46.322
J icomment There\swas\sa\slively\sdiscussion\son\sstackoverflow\son\sthe\ssubject:\r\n\r\nhttps://stackoverflow.com/questions/28462414/alloc-invalid-block-are-tcl-incrrefcount-and-tcl-decrrefcount-thread-safe-for\r\n\r\nThe\slong\sand\sshort\sanswer\sis\sthat\sTcl_IncrRefCount\sis\sperfectly\sThread\ssafe.\sPassing\svalues\saround\sbetween\sthreads...\sno\sto\smuch.\sMostly\sto\sdo\swith\sshimmering.\s\r\n\r\nOn\sone\shand\sthese\sare\smarked\sas\sshared\sobjects,\sand\sanyone\swho\swas\sgoing\sto\smodify\sthem\sshould\sclone\sthem\sand\smodify\sa\scopy.\sOn\sthe\sother...\sif\ssomeone\sdoes\smanage\sto\smodify\sthem\sit\swill\sbe\shell\sto\sfigure\sout\swhat\sis\sgoing\son.\r\n\r\nLet's\smeet\shalfway.\sInstead\sof\sstoring\sTcl_Objs,\slet's\sstore\sconstant\sstrings.\sAnd\sall\sof\sthe\sfunctions\sthat\sreturn\sTcl_Objs\swill\sproduces\sa\sfresh\scopy\sof\sthose\sstrings.
J login hypnotoad
J mimetype text/plain
K 17f747a4a4720f8e9797e7933dd43745b73e0e2c
U hypnotoad
Z 7b2750b8b5f504a46867422e013f7982