Overview
| Artifact ID: | fa72f2dd019e354a1505baa3e30d33cae61b040f |
|---|---|
| Ticket: | 770053ffffffffffffffffffffffffffffffffff
Tcl_CreateThread breaks notifier thread refcount |
| User & Date: | vasiljevic on 2004-07-12 23:27:23 |
Changes
- icomment:
Logged In: YES user_id=95086 Can please somebody verify that this is now working OK? I cannot do it here. Just go to generic/tclEvent.c and replace the NewThreadProc() call with the one below: static Tcl_ThreadCreateType NewThreadProc(ClientData clientData) { ThreadClientData *cdPtr; ClientData threadClientData; Tcl_ThreadCreateProc *threadProc; ThreadSpecificData *tsdPtr; tsdPtr = (ThreadSpecificData *)TclThreadDataKeyGet(&dataKey); cdPtr = (ThreadClientData *)clientData; threadProc = cdPtr->proc; threadClientData = cdPtr->clientData; Tcl_Free((char*)clientData); /* Allocated in Tcl_CreateThread() */ if (tsdPtr == NULL) { tsdPtr = TCL_TSD_INIT(&dataKey); TclInitNotifier(); } (*threadProc)(threadClientData); } Please tell me what you get. - login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"