Artifacts Associated With Ticket 849007ffffffffffffffffffffffffffffffffff
Ticket change [16cc22e5dd] (rid 124776) by nobody on 2003-11-25 15:03:36:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized to:
in the first if, need the '*' !! (ie. *condPtr) the following code, is after the fix. void Tcl_ConditionNotify(condPtr) Tcl_Condition *condPtr; { WinCondition *winCondPtr; ThreadSpecificData *tsdPtr; if (*condPtr != NULL) { winCondPtr = *((WinCondition **)condPtr); /* * Loop through all the threads waiting on the condition * and notify them (i.e., broadcast semantics). The queue * manipulation is guarded by the per- condition coordinating mutex. */ EnterCriticalSection(&winCondPtr->condLock); while (winCondPtr->firstPtr != NULL) { tsdPtr = winCondPtr->firstPtr; winCondPtr->firstPtr = tsdPtr->nextPtr; if (winCondPtr->lastPtr == tsdPtr) { winCondPtr->lastPtr = NULL; } tsdPtr->flags = WIN_THREAD_RUNNING; tsdPtr->nextPtr = NULL; tsdPtr->prevPtr = NULL;/* Not strictly necessary, see A: */ SetEvent(tsdPtr->condEvent); } LeaveCriticalSection(&winCondPtr->condLock); } else { /* * Noone has used the condition variable, so there are no waiters. */ } } - foundin initialized to: "obsolete: 8.4.5"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "49. Threading"
- title initialized to: "bug in Tcl_ConditionNotify for win build"
- type initialized to: "Bug"
Ticket change [589793e802] (rid 117831) by davygrvy on 2003-12-06 01:51:52:
- icomment:
Logged In: YES user_id=7549 Could the author please explain this. I don't seem to understand. What's the diff to the current code?
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [b48eae2999] (rid 125060) by davygrvy on 2004-01-12 03:31:29:
- assignee changed to: "davygrvy"
- icomment:
Logged In: YES user_id=7549 I see the fix now, and is valid. The old 'if (condPtr != NULL)' will always be true. Yes, must be dereferenced.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
Ticket change [21b2c60ac0] (rid 130627) by davygrvy on 2004-01-12 03:39:32:
- closedate changed to: "2004-01-11T20:39:32"
- closer changed to: "davygrvy"
- icomment:
Logged In: YES user_id=7549 change committed to HEAD.
- login: "davygrvy"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "davygrvy"