Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2a79d9dc967716bb8647c00c37563d23eda6ce13
Ticket: 219354ffffffffffffffffffffffffffffffffff
threaded notifier does not work with signals
User & Date: das on 2009-06-29 23:54:24
Changes

  1. closedate changed to: "2009-06-29T16:54:24"
  2. closer changed to: "das"
  3. icomment:
    
    
    allow_comments - 1
    
    AFAICT this can be closed as out of date, Tcl_AsyncMark() handles waking up the correct thread nowadays.
    
    Specifically, TclX_SignalInit() calls Tcl_AsyncCreate(ProcessSignals, NULL) for the first interp it is loaded in and installs a signal handler that calls Tcl_AsyncMark() on that async handler.
    In threaded tcl, Tcl_AsyncMark() calls Tcl_ThreadAlert() which calls Tcl_AlertNotifier() which wakes up the thread that called Tcl_AsyncCreate(), so the notifier thread no longer needs to do anything to ensure the async handler is called when a signal is received.
    
    
  4. login: "das"
  5. mimetype: "text/plain"
  6. resolution changed to: "Out of Date"
  7. status changed to: "Closed"
  8. username: "das"