aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/workqueue.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move util::workqueue to styleAnthony Ramine2016-07-041-361/+0
|
* Use *const AtomicUsize rather than *mut AtomicUsize in WorkQueue.Ms2ger2016-06-191-4/+4
| | | | Atomics use internal mutability, so this *mut is at best confusing.
* Remove empty lines following braces.Josh Matthews2016-05-271-1/+0
|
* Fix integer overflow in next_power_of_twoMatt Brubeck2016-05-111-12/+1
|
* Switch to external deque crateGreg Morenz2016-02-171-13/+12
|
* Cargo updates and small workqueue changeLars Bergstrom2016-01-201-2/+1
|
* win32: make sleep_microseconds for backoff just do a win32 Sleep(0)Vladimir Vukicevic2016-01-201-3/+21
|
* task -> threadrohan.prinja2016-01-101-6/+6
|
* Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12)Manish Goregaokar2015-11-271-1/+1
| | | | … and libc 0.2 and many other dependencies
* Fix issues found by rust-clippyCorey Farwell2015-10-121-4/+4
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-2/+2
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-3/+2
| | | | This merges import blocks that were reported by tidy as unmerged.
* Fix existing syntactics nits.Josh Matthews2015-08-161-1/+1
|
* Replace uses of `for foo in bar.iter()` and `for foo in bar.iter_mut()`João Oliveira2015-08-151-4/+4
| | | | closes #7197
* Require that WorkQueue's QueueData is Sync rather than Send.Ms2ger2015-07-071-2/+2
|
* Remove unused import.Michael Tremel2015-07-061-1/+0
|
* Borrow the QueueData for WorkQueue::run.Ms2ger2015-07-041-8/+9
| | | | | This allows us to get rid of the raw pointers and unsafe dereferencing in the parallel layout implementation.
* Auto merge of #6513 - Ms2ger:workqueue-data, r=pcwaltonbors-servo2015-07-031-7/+3
|\ | | | | | | | | | | | | | | | | | | Remove the data field from WorkQueue. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6513) <!-- Reviewable:end -->
| * Remove the data field from WorkQueue.Ms2ger2015-06-291-7/+3
| | | | | | | | It is only used in the run method.
* | Move back to using a labeled break in WorkQueue.Ms2ger2015-06-271-17/+3
|/ | | | | This was changed in 18a2050a64cd6f320cc59cb490a69b0e895f11d3; it appears to work fine now.
* Auto merge of #6334 - nnethercote:report-local-contexts, r=pcwaltonbors-servo2015-06-121-0/+28
|\ | | | | | | | | | | | | | | Passing a function that measures TLS to WorkQueue is a bit weird, but I can't see how else to measure that data. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6334) <!-- Reviewable:end -->
| * Measure LocalLayoutContexts in LayoutTask and LayoutWorkers.Nicholas Nethercote2015-06-101-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The FreeType instances in layout workers are reasonably large and worth measuring. The one in LayoutTask is smaller but it's easy to measure at the same time. Sample output: ``` | 8.33 MiB -- pages | 8.33 MiB -- url(file:///home/njn/moz/servo/../servo-static-suite/wikipedia/Guardians%20of%20the%20Galaxy%20(film)%20-%20Wikipedia,%20the%20free%20encyclopedia.html) | 1.32 MiB -- layout-worker-0-local-context | 1.31 MiB -- layout-worker-1-local-context | 1.24 MiB -- layout-worker-3-local-context | 1.17 MiB -- layout-worker-4-local-context | 1.08 MiB -- layout-worker-2-local-context | 1.06 MiB -- layout-worker-5-local-context | 0.78 MiB -- paint-task | 0.78 MiB -- buffer-map | 0.38 MiB -- layout-task | 0.30 MiB -- display-list | 0.07 MiB -- local-context ``` This required adding a mechanism to WorkQueue to measure worker TLSes.
* | util: Reduce memory barriers and integer divisions in the work queue.Patrick Walton2015-06-111-20/+40
|/ | | | Improves scaling on multicore ARM devices.
* Update some code that's feature-gated under core.Ms2ger2015-03-211-4/+4
|
* Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.Ms2ger2015-03-181-4/+6
|
* Remove uint/int inside `components/util` (partial #4745).Alexandru Cojocaru2015-02-281-9/+9
| | | | This leaves range.rs alone.
* layout: Add an option to visualize parallel layoutPatrick Walton2015-02-201-0/+8
|
* Upgrade to rustc ba2f13ef0 2015-02-04Simon Sapin2015-02-111-2/+1
|
* Fix various build warnings.Ms2ger2015-01-281-1/+1
|
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-13/+20
|
* Use std::sync::atomic::Ordering explicitly.Ms2ger2015-01-221-3/+3
|
* Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.Ms2ger2015-01-081-1/+1
|
* Remove spawn_named_native.Ms2ger2015-01-051-2/+2
| | | | All threads are native now, so this was just an alias for spawn_named.
* Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.Ms2ger2014-12-171-18/+18
|
* Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8aJack Moffitt2014-11-131-10/+11
|
* Run all task spawning through util, to allow for easy hooking.Clark Gaebel2014-10-281-9/+11
| | | | | | | | During debugging, I found it useful to hook all task creation in a central location, and util::task was the perfect place for it. r? @pcwalton (or maybe someone else, I'm kinda sending you a bunch of reviews today because I don't know who better to give them to)
* Addressed code review comments.Clark Gaebel2014-10-271-5/+11
|
* Adding back-off instead of busy-spinningLalehB2014-10-271-1/+8
| | | | Also changed the total number of spinning similar to Cilk
* Dynamically check DOMRefCell access from layout in debug buildsKeegan McAllister2014-10-241-1/+7
|
* Upgrade to rustc d2b30f7d3 2014-09-23Simon Sapin2014-09-291-1/+1
|
* Eliminate warningsKeegan McAllister2014-09-201-3/+3
|
* Upgrade to rustc 0.12.0-pre (4d2af3861 2014-09-17 15:51:11 +0000)Keegan McAllister2014-09-201-2/+2
|
* Added a bloom filter to CSS selector matching.Clark Gaebel2014-09-151-1/+0
|
* Cargoify servoJack Moffitt2014-09-081-0/+291