Skip to content
Tcl Source Code History Of Ticket 849007ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 849007ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 849007ffffffffffffffffffffffffffffffffff

  1. Ticket change [16cc22e5dd] (rid 124776) by nobody on 2003-11-25 15:03:36:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. 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.
       */
          }
      }
      
      
    4. foundin initialized to: "obsolete: 8.4.5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "49. Threading"
    10. title initialized to: "bug in Tcl_ConditionNotify for win build"
    11. type initialized to: "Bug"
  2. Ticket change [589793e802] (rid 117831) by davygrvy on 2003-12-06 01:51:52:

    1. 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?
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  3. Ticket change [b48eae2999] (rid 125060) by davygrvy on 2004-01-12 03:31:29:

    1. assignee changed to: "davygrvy"
    2. 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.
      
      
    3. login: "davygrvy"
    4. mimetype: "text/plain"
    5. username: "davygrvy"
  4. Ticket change [21b2c60ac0] (rid 130627) by davygrvy on 2004-01-12 03:39:32:

    1. closedate changed to: "2004-01-11T20:39:32"
    2. closer changed to: "davygrvy"
    3. icomment:
      Logged In: YES 
      user_id=7549
      
      change committed to HEAD.
      
      
    4. login: "davygrvy"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "davygrvy"