| Ticket UUID: | 219267 | ||
| Title: | [update timers];[update fileevents] | ||
| Type: | RFE | Created on: | 2000-10-26 05:09:39 |
| Submitter: | nobody | Assigned to: | ferrieux |
| Subsystem: | 02. Event Loops | Severity: | |
| Priority: | 4 | Last modified: | 2026-11-13 11:18:44 |
| Status: | Closed | Closed by: | serhiy.storchaka |
| Resolution: | Out of Date | Closed on: | 2026-11-13 11:18:43 |
| Version: | obsolete: 8.4a3 | ||
| Description: | ||||
OriginalBugID: 1333 RFE
Version: 8.0.4
SubmitDate: '1999-03-02'
LastModified: '1999-03-02'
Severity: MED
Status: UnAssn
Submitter: pat
ChangedBy: pat
OS: Other
Machine: NA
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'
Name:
Alexandre FERRIEUX
DesiredBehavior:
Allow to service only specific subqueues in [update].
[update idletasks] already exists, for "after idle" scripts.
Two more subqueues would be very interesting:
- [update timers] to service "after $ms" scripts only
- [update fileevents] to service fileevents only
Applications:
- [update timers] has already shown up on clt as a (wanted) tool for
execution interleaving (http://x10.dejanews.com/getdoc.xp?AN=393658016)
- [update fileevents] can be very useful in apps where synchronization
issues compel the programmer to drain fileevents before doing a specific
action, but without letting the GUI intersperse its slow
contributions...
- more generally, since the event queue is the sum of three subqueues,
it makes sense to give a tool that separates them !
| ||||
| User Comments: | ||||
dkf added on 2000-11-08 18:13:54:
I'm not all that sure that the implementation can really separate events from files and the (UNIX) GUI all that well. It would be useful though; an extended version of this might even make some extensions easier to write (IIRC scotty does some wierd stuff here...) dkf added on 2000-11-28 20:39:28:
There is a way to separate out GUI events of course; just don't include the X connection fd in the select set. I'm not sure that Tcl is currently capable of handling that though. It would also be nice to be able to do the reverse (consume all X events without getting any file events) since I've seen apps where the quantity of data coming over file events was such that the X events were not serviced reliably enough... dkf added on 2009-08-02 22:39:17:
Still think that only servicing X11 or non-X11 events is too hard (in a multi-threaded app there may be multiple connections to the X server, and it's a non-clean split between Tk's and Tcl's responsibilities) but [update timers] is possible, since there you're not mixing up between different low-level event types (I think) and *might* even be occasionally useful (e.g., when you're drowning in events). Not sure how other types of events fit into this. Assigning back to the original requester for his opinion. serhiy.storchaka added on 2026-11-13 11:18:44:
TIP 455 (Tcl 9.0) added the -nofileevents, -notimerevents, -noidleevents and -nowindowevents options to vwait, so vwait -timeout 0 -nofileevents -noidleevents -nowindowevents services only the pending timer events, and the same with -notimerevents instead of -nofileevents services only the file events. | ||||
