Created
June 6, 2012 20:07
-
-
Save eholk/2884402 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| task::spawn {|move lock2| | |
| let lock = arc::get(&lock2); | |
| (*lock).lock_cond {|c| | |
| c.wait(); | |
| } | |
| } | |
| // lock should be a & reference to one of these: | |
| resource lock_and_signal(lock: rust_cond_lock) { | |
| rustrt::rust_destroy_cond_lock(lock); | |
| } | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More details: