Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c9c056c3d5e4d00bf96fc2abd463ff5b3b3ec1813b7c269857877d8e2da9e8f1
Ticket: 83116f5e05430902cdeb59758f6d53f57fafac3d
Tcl_Async* documentation wrong
User & Date: chw on 2018-06-08 22:40:18
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    The Async.3 man page states "These procedures provide a safe mechanism for dealing with asynchronous events such as signals."
    
    Signals here mean POSIX signals, i.e. software interrupts delivered by the kernel to a user process/thread.
    
    The statement in the man page is wrong, when the Tcl core is built with TCL_THREADS w.r.t. the function Tcl_AsyncMark(), which needs to acquire at least one mutex using the POSIX function pthread_mutex_lock(), which is not allowed in a signal context.
    
    OTOH, the statement is correct, when the Tcl core is single threaded, since no potentially blocking system call is involved, but a single flag is set.
    
    Thus, additional wording is required, to describe more precisely the working of Tcl_AsyncMark() et.al. in threaded and non-threaded environments.
    
  5. foundin changed to: "8.6 and later"
  6. is_private changed to: "0"
  7. login: "chw"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0b3aff16612e1e9f3b675963fa64e01bd1d89307"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "chw"
  14. subsystem changed to: "69. Other"
  15. title changed to: "Tcl_Async* documentation wrong"
  16. type changed to: "Bug"