Skip to content
Tcl Source Code History Of Ticket 217951
Login

History Of Ticket 217951

Artifacts Associated With Ticket 217951

  1. Ticket change [0ce8734810] (rid 114262) by nobody on 2000-10-26 00:46:31:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 3952 Bug
      Version: 8.3b1
      SubmitDate: '1999-12-28'
      LastModified: '2000-07-25'
      Severity: LOW
      Status: Closed
      Submitter: techsupp
      ChangedBy: davidg
      RelatedBugIDs: 5791
      OS: Windows 2000
      FixedDate: '2000-07-25'
      FixedInVersion: 8.4a1
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      David Gravereaux
      
      
      
      CVS:
      
      I updated today
      
      
      
      CustomShell:
      
      tclAsync.c changes in progress
      
      
      
      Comments:
      
      The unix notifier still needs a wake-up method like the windows' 
      
      TclpAsyncMark.  The tclAsync.c patches aren't complete without it.
      
      
      
      ObservedBehavior:
      
      Looks like TclpAsyncMark should reside in tclWinNotify.c rather than
      
      tclWinInit.c for purely asthetic reasons.  I forgot the prototype
      
      change to TclpAsyncMark in the original patch.
      
      
      
      Patch:
      
      Index: tclWinInit.c
      
      ===================================================================
      
      RCS file: /cvsroot/tcl/win/tclWinInit.c,v
      
      retrieving revision 1.21
      
      diff -c -r1.21 tclWinInit.c
      
      *** tclWinInit.c1999/12/09 14:44:111.21
      
      --- tclWinInit.c1999/12/28 04:10:10
      
      ***************
      
      *** 815,845 ****
      
                Tcl_DStringFree(&temp);
      
            }
      
        }
      
      - 
      
      
      
      - /*
      
      -  *----------------------------------------------------------------------
      
      -  *
      
      -  * TclpAsyncMark --
      
      -  *
      
      -  *Wake up the main thread from a signal handler.
      
      -  *
      
      -  * Results:
      
      -  *None.
      
      -  *
      
      -  * Side effects:
      
      -  *Sends a message to the main thread.
      
      -  *
      
      -  *----------------------------------------------------------------------
      
      -  */
      
      - 
      
      - void
      
      - TclpAsyncMark(async)
      
      -     Tcl_AsyncHandler async;/* Token for handler. */
      
      - {
      
      -     /*
      
      -      * Need a way to kick the Windows event loop and tell it to go look at
      
      -      * asynchronous events.
      
      -      */
      
      - 
      
      -     PostThreadMessage(mainThreadId, WM_USER, 0, 0);
      
      - }
      
      --- 815,817 ----
      
      Index: tclWinNotify.c
      
      ===================================================================
      
      RCS file: /cvsroot/tcl/win/tclWinNotify.c,v
      
      retrieving revision 1.5
      
      diff -c -r1.5 tclWinNotify.c
      
      *** tclWinNotify.c1999/07/02 22:08:281.5
      
      --- tclWinNotify.c1999/12/28 04:10:11
      
      ***************
      
      *** 512,514 ****
      
      --- 512,542 ----
      
        {
      
            Sleep(ms);
      
        }
      
      + 
      
      
      
      + /*
      
      +  *----------------------------------------------------------------------
      
      +  *
      
      +  * TclpAsyncMark --
      
      +  *
      
      +  *Wake up the main thread from a signal handler.
      
      +  *
      
      +  * Results:
      
      +  *None.
      
      +  *
      
      +  * Side effects:
      
      +  *Sends a message to the main thread.
      
      +  *
      
      +  *----------------------------------------------------------------------
      
      +  */
      
      + 
      
      + void
      
      + TclpAsyncMark(threadId)
      
      +     Tcl_ThreadId threadId;/* Thread ID from async token. */
      
      + {
      
      +     /*
      
      +      * Need a way to kick the Windows event loop and tell it to go look at
      
      +      * asynchronous events.
      
      +      */
      
      + 
      
      +     PostThreadMessage((DWORD)threadId, WM_USER, 0, 0);
      
      + }
      
      Index: tclInt.decls
      
      ===================================================================
      
      RCS file: /cvsroot/tcl/generic/tclInt.decls,v
      
      retrieving revision 1.19
      
      diff -c -r1.19 tclInt.decls
      
      *** tclInt.decls1999/12/12 22:46:421.19
      
      --- tclInt.decls1999/12/28 04:11:17
      
      ***************
      
      *** 792,798 ****
      
            void TclWinAddProcess(HANDLE hProcess, DWORD id)
      
        }
      
        declare 21 win {
      
      !     void TclpAsyncMark(Tcl_AsyncHandler async)
      
        }
      
        
      
        # Added in 8.1:
      
      --- 792,798 ----
      
            void TclWinAddProcess(HANDLE hProcess, DWORD id)
      
        }
      
        declare 21 win {
      
      !     void TclpAsyncMark(Tcl_ThreadId threadId)
      
        }
      
        
      
        # Added in 8.1:
      
      
      
      PatchFiles:
      
      win/tclWinInit.c win/tclWinNotify.c generic/tclInt.decls
      
      
      
      
      
      #5791 integrated. 
      -- 07/25/2000 davidg
      
    4. foundin initialized to: "obsolete: 8.3b1"
    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:
      Tcl_AsyncMark yields the wrong thread (more follow-up)
      
    11. type initialized to: "Bug"
  2. Ticket change [88d86abd3b] (rid 131927) by welch on 2000-10-26 08:10:55:

    1. closedate changed to: "2000-10-26T01:10:55"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"