about summary refs log tree commit diff
path: root/src/libstd/thread_pool.rs
diff options
context:
space:
mode:
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);
         }