diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-06-18 09:39:16 -0700 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2013-06-28 10:44:16 -0400 |
| commit | e015bee2866a802f17c84bd6d3a06212945a9d17 (patch) | |
| tree | 676f45de5bbcc9420fb0417719b262953c8d808c /src/libextra | |
| parent | 89eb9951958dc2cd652645cea5badf4bb9edc6f9 (diff) | |
| download | rust-e015bee2866a802f17c84bd6d3a06212945a9d17.tar.gz rust-e015bee2866a802f17c84bd6d3a06212945a9d17.zip | |
Rewrite each_path to allow performance improvements in the future.
Instead of determining paths from the path tag, we iterate through modules' children recursively in the metadata. This will allow for lazy external module resolution.
Diffstat (limited to 'src/libextra')
| -rw-r--r-- | src/libextra/sync.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libextra/sync.rs b/src/libextra/sync.rs index 56168f923ad..3908b61381b 100644 --- a/src/libextra/sync.rs +++ b/src/libextra/sync.rs @@ -381,7 +381,7 @@ impl Sem<~[Waitqueue]> { // The only other places that condvars get built are rwlock.write_cond() // and rwlock_write_mode. pub fn access_cond<U>(&self, blk: &fn(c: &Condvar) -> U) -> U { - do self.access { + do self.access_waitqueue { blk(&Condvar { sem: self, order: Nothing }) } } |
