Ticket UUID: | 1077194 | |||
Title: | ekeko: revise mutexes in Tcl_CallWhenDeleted | |||
Type: | RFE | Version: | None | |
Submitter: | dgp | Created on: | 2004-12-02 00:15:04 | |
Subsystem: | 45. Parsing and Eval | Assigned To: | msofer | |
Priority: | 2 | Severity: | ||
Status: | Closed | Last Modified: | 2008-07-30 07:05:18 | |
Resolution: | Accepted | Closed By: | msofer | |
Closed on: | 2008-07-30 00:05:18 | |||
Description: |
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. | |||
User Comments: |
dgp added on 2005-07-27 00:07:36:
Logged In: YES user_id=80530 simple fix committed to both branches. leaving open for further ekeko consideration. dgp added on 2005-07-07 23:13:00: File Added - 141218: 1077194.patch dgp added on 2005-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. |
Attachments:
- 1077194.patch [download] added by dgp on 2005-07-07 23:12:48. [details]