Skip to content
Tcl Source Code View Ticket
Login

View Ticket

ekeko: revise mutexes in Tcl_CallWhenDeleted

Closed / Accepted1077194fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 18 years ago
Descriptionplain2004-12-02 00:15:04
dgpTcl_CallWhenDeleted()...
[19:07]dgp...uses an assocMutex so that all interps
in all threads can share one common counter for
generating Assoc Data key strings.
[19:07]***IcE-bOy leaves
[19:08]dgpWouldn't is be easier to have one counter
per-thread?  That would still preserve uniqueness
within each interp, which is all that's needed.
[19:08]dgpAnd that's a simple use of Tcl_GetThreadData().


or even simpler a counter per-interp.
dgpplain2005-07-07 23:12:47
Logged In: YES 
user_id=80530


Here's a patch that does the 
simple Tcl_GetThreadData()
alternative.

Leaving futher migration to
a per-interp counter to others
(ekeko enthusiasts?).

Please review.
dgpplain2005-07-07 23:13:00
File Added - 141218: 1077194.patch
dgpplain2005-07-27 00:07:36
Logged In: YES 
user_id=80530


simple fix committed to both
branches.

leaving open for further ekeko
consideration.
msofer Ticket [1077194fff]: 2 changes [History diff]2006-09-30 00:58:17
msofer Closed ticket [1077194fff]. [History diff]2008-07-30 07:05:18
Log in (anonymous is fine) to add a comment.

Attachments: