servo/components/util
bors-servo 5dae3cc01b Auto merge of #12275 - emilio:prefs-rwlock, r=jdm
prefs: Make the preferences be guarded by a RwLock instead of a Mutex

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [x] These changes do not require tests because internals.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

This should reduce unnecessary locks that happen when we read preferences.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12275)
<!-- Reviewable:end -->
2016-07-06 17:54:13 -07:00
..
basedir.rs Restore Android to using /sdcard/servo for data, cache, and config paths 2016-06-09 12:54:15 -05:00
cache.rs Remove unnecessary clone in LRUCache::touch 2016-05-13 18:20:59 -07:00
Cargo.toml Move util::str to style 2016-07-05 10:43:54 +02:00
geometry.rs Make it possible to build the style_traits crate with a stable compiler. 2016-06-22 15:40:53 +02:00
ipc.rs Update ipc-channel to pick up the improved error reporting. 2015-11-23 16:38:39 -08:00
lib.rs Remove util::breakpoint 2016-07-06 12:20:47 +02:00
opts.rs Refactor util::prefs operations to be methods on static struct. 2016-07-02 16:43:39 -04:00
panicking.rs Remove empty lines following braces. 2016-05-27 13:32:05 -04:00
prefs.rs prefs: Make the preferences be guarded by a RwLock instead of a Mutex 2016-07-05 13:13:22 -07:00
resource_files.rs create an app bundle and package it in dmg 2016-06-28 13:09:08 -06:00
thread.rs Make the style crate almost build on stable Rust. 2016-06-22 15:44:13 +02:00
thread_state.rs Upgrade to bitflags 0.6.0 and selectors 0.5.6 2016-04-30 10:14:03 -07:00