Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 02732054357289deba34d07dc49b25ccf12c1a07
Ticket: 502022ffffffffffffffffffffffffffffffffff
Tcl_AsyncMark doesn't awaken the Notifie
User & Date: davethomas on 2002-01-10 20:32:25
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
      Tcl Version:  8.3.4
      OS :Unix platforms
      Tcl_AsyncMark doesn't awaken the Notifier (see defect 
     #217934 )
    
    This problem still exists on non-threaded versions of 
    Tcl.  Tcl_AlertNotifier does nothing if TCL_THREADS is 
    not defined:
    
    void
    Tcl_AlertNotifier(clientData)
        ClientData clientData;
    {
    #ifdef TCL_THREADS
        ThreadSpecificData *tsdPtr = (ThreadSpecificData *) 
    clientData;
        Tcl_MutexLock(&notifierMutex);
        tsdPtr->eventReady = 1;
        Tcl_ConditionNotify(&tsdPtr->waitCV);
        Tcl_MutexUnlock(&notifierMutex);
    #endif
    
    }
    
    So if Tcl is blocked in a select statement (as in a 
    socket event driven application), events posted to the 
    Tcl event queue via Tcl_AsyncMark don't get handled 
    until an unrelated event kicks Tcl out of the select 
    statement.
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "davethomas"
  9. subsystem changed to: "None"
  10. title changed to: "Tcl_AsyncMark doesn't awaken the Notifie"
  11. type changed to: "Bug"