Tcl Source Code

View Ticket
Login
Ticket UUID: 745068
Title: error if tcl_conditionnotify preceeded a call to tcl_conditi
Type: Bug Created on: 2003-05-28 18:15:03
Submitter: melbardis Assigned to: davygrvy
Subsystem: 49. Threading Severity:
Priority: 5 Medium Last modified: 2004-01-12 03:44:44
Status: Closed Closed by: davygrvy
Resolution: Fixed Closed on: 2004-01-11 20:44:44
Version: obsolete: 8.4.3
Description:
there is a small bug in tcl_conditionNotify for win32 
platform. missing '*' (indirection operator)

is:
------------
void
Tcl_ConditionNotify(condPtr)
    Tcl_Condition *condPtr;
{
    WinCondition *winCondPtr;
    ThreadSpecificData *tsdPtr;
    if (condPtr != NULL) {
winCondPtr = *((WinCondition **)condPtr);

should be
-------------
void
Tcl_ConditionNotify(condPtr)
    Tcl_Condition *condPtr;
{
    WinCondition *winCondPtr;
    ThreadSpecificData *tsdPtr;
    if (*condPtr != NULL) {
winCondPtr = *((WinCondition **)condPtr);

noe: *condPtr is required for proper operation

changed this and app worked.
User Comments:
davygrvy added on 2004-01-12 03:44:44:
Logged In: YES 
user_id=7549

Fixed.