Overview
| Artifact ID: | c9c056c3d5e4d00bf96fc2abd463ff5b3b3ec1813b7c269857877d8e2da9e8f1 |
|---|---|
| Ticket: | 83116f5e05430902cdeb59758f6d53f57fafac3d
Tcl_Async* documentation wrong |
| User & Date: | chw on 2018-06-08 22:40:18 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- 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.
- foundin changed to: "8.6 and later"
- is_private changed to: "0"
- login: "chw"
- priority changed to: "5 Medium"
- private_contact changed to: "0b3aff16612e1e9f3b675963fa64e01bd1d89307"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "chw"
- subsystem changed to: "69. Other"
- title changed to: "Tcl_Async* documentation wrong"
- type changed to: "Bug"