about summary refs log tree commit diff
path: root/src/libstd/timer.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-05-22 18:24:28 -0700
committerBrian Anderson <banderson@mozilla.com>2012-05-22 22:29:17 -0700
commit8ec467d521e6e39f80a0c74c049a5aa719a01dde (patch)
treeb55c30ab9aadd55145e11bdb9b1575ea4e9fe618 /src/libstd/timer.rs
parent92e9e736fab57a169882897337cef344a48c0c2d (diff)
std: Update timer for new kind rules
Diffstat (limited to 'src/libstd/timer.rs')
-rw-r--r--src/libstd/timer.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libstd/timer.rs b/src/libstd/timer.rs
index 7e5a458a158..f910b724c44 100644
--- a/src/libstd/timer.rs
+++ b/src/libstd/timer.rs
@@ -21,8 +21,8 @@ for *at least* that period of time.
 * ch - a channel of type T to send a `val` on
 * val - a value of type T to send over the provided `ch`
 "]
-fn delayed_send<T: send>(hl_loop: uv::hl::high_level_loop,
-                         msecs: uint, ch: comm::chan<T>, val: T) {
+fn delayed_send<T: copy send>(hl_loop: uv::hl::high_level_loop,
+                              msecs: uint, ch: comm::chan<T>, val: T) {
     task::spawn() {||
         unsafe {
             let timer_done_po = comm::port::<()>();
@@ -97,8 +97,9 @@ An `option<T>` representing the outcome of the call. If the call `recv`'d on
 the provided port in the allotted timeout period, then the result will be a
 `some(T)`. If not, then `none` will be returned.
 "]
-fn recv_timeout<T: send>(hl_loop: uv::hl::high_level_loop,
-                         msecs: uint, wait_po: comm::port<T>) -> option<T> {
+fn recv_timeout<T: copy send>(hl_loop: uv::hl::high_level_loop,
+                              msecs: uint,
+                              wait_po: comm::port<T>) -> option<T> {
     let timeout_po = comm::port::<()>();
     let timeout_ch = comm::chan(timeout_po);
     delayed_send(hl_loop, msecs, timeout_ch, ());