about summary refs log tree commit diff
path: root/src/libstd/thread_pool.rs
diff options
context:
space:
mode:
authorBen Striegel <ben.striegel@gmail.com>2012-11-13 21:38:18 -0500
committerBrian Anderson <banderson@mozilla.com>2012-11-14 16:15:34 -0800
commit4589597785c4e485db82bc06c2c44ac2ebcced6a (patch)
tree35053801b2b14b52e1ab6f05e0f06f2c3863ad68 /src/libstd/thread_pool.rs
parent4b0e1336b26b5bc29e14370e55d4811f15b1dce8 (diff)
downloadrust-4589597785c4e485db82bc06c2c44ac2ebcced6a.tar.gz
rust-4589597785c4e485db82bc06c2c44ac2ebcced6a.zip
Convert libstd to use the Drop trait
Diffstat (limited to 'src/libstd/thread_pool.rs')
-rw-r--r--src/libstd/thread_pool.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/thread_pool.rs b/src/libstd/thread_pool.rs
index 4bded2093d0..f5d1a6edbf1 100644
--- a/src/libstd/thread_pool.rs
+++ b/src/libstd/thread_pool.rs
@@ -13,7 +13,10 @@ pub struct ThreadPool<T> {
     channels: ~[Chan<Msg<T>>],
     mut next_index: uint,
 
-    drop {
+}
+
+impl<T> ThreadPool<T> {
+    fn finalize() {
         for self.channels.each |channel| {
             channel.send(Quit);
         }