|
Boost Users : |
From: fanzhe cui (fanzhe.cui_at_[hidden])
Date: 2007-06-18 07:54:24
I checked asio timer before, when I was looking for boost timer library. The
smallest time granularity of asio::deadlime_timer is second. I did not find
any example or document of asio that mentioned about smaller granularity.
++++++++++++++++++++++++++++++++++++
Goldiom Systems LLC
- Information and Communication Technology Provider
Email: fanzhe.cui_at_[hidden]
Tel: 973-210-4254
www.goldiom.com
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Sergey Nikulov
Sent: Monday, June 18, 2007 1:16 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] How to create a timer in boost::thread
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