aboutsummaryrefslogtreecommitdiffstats
path: root/components/constellation/timer_scheduler.rs
Commit message (Collapse)AuthorAgeFilesLines
* script: Make timers per-process (#34581)Martin Robinson2024-12-241-73/+0
| | | | | | | | | | | | | | | Before all timers were managed by the Constellation process, meaning that they had to trigger IPC calls to be scheduled and fired. Currently, timers are only used in the `ScriptThread`, so it makes sense that they are per-process. This change restores the timer thread functionality that existed before avoided entirely. Completion is done using a callback that is sent to the timer thread similarly to how fetch is done. This allows reusing the existing task queue without making any new channels. Fixes #15219. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* script: Stop using `time` in DOM timers (#33262)Martin Robinson2024-08-301-2/+1
| | | | | | This switches to using `std::time` types for DOM timer operations, which allows removing our custom time units in favor of `Duration`. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* clippy: Fix warnings in `components/constellation` (#31610)eri2024-03-111-1/+1
| | | | | * clippy: fix warnings in components/constellation * fix: review comments
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-1/+2
| | | | | * strict imports formatting * Reformat all imports
* update timer scheduler to use crossbeamGregory Terzian2019-10-201-90/+34
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Update crossbeam-channel to 0.3Bastien Orivel2018-11-181-18/+15
|
* Replace mpsc with crossbeam/servo channel, update ipc-channelSimon Sapin2018-09-121-14/+17
| | | | Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
* add servo_channel crateGregory Terzian2018-09-121-3/+2
|
* Rustfmt the constellationConnor Brewster2018-07-211-4/+6
|
* Terminate timer scheduler thread during shutdownFernando Jiménez Moreno2017-03-301-4/+13
|
* Check all constellation files for panicsAneesh Agrawal2017-01-201-4/+4
| | | | | Teaches the `etc/ci/check_no_panic.sh` script to handle directories, so it can check all constellation files for panics.
* Replace the one-thread-per-timeout model by a two-thread model of timeouts.Alan Jeffrey2016-05-201-183/+81
|
* Move constellation into its own crate.Ms2ger2016-05-181-0/+221