Boost logo

Boost Users :

From: Sergey Nikulov (sergey.nikulov_at_[hidden])
Date: 2007-06-18 01:15:58


You can check boost::asio (http://asio.sourceforge.net/)
Here you can find pretty simple examples for boost::asio::deadline_timer
which is (I think so) answer on both of your questions.

HTH,
Sergey

2007/6/17, Meryl Silverburgh <silverburgh.meryl_at_[hidden]>:
>
> Hi,
>
> Can you please tell me if i can do this with boost::thread library?
>
> 1. create a timer (say 5 seconds) which execute a function in a
> different thread when it expires.
> 2. the creator can cancel the timer before it expires.
>
> Thank you.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net