Boost logo

Boost Users :

Subject: Re: [Boost-users] how to make a thread sleep forever
From: Eric J. Holtman (eric_at_[hidden])
Date: 2010-05-06 11:10:32


On 5/6/2010 9:55 AM, Alex Flint wrote:
> Is there an elegant way to make the current thread go to sleep
> forever? I simply want the current thread to sleep indefinitely, i.e.
> until a call to exit() or similar. Obviously I could call sleep() in a
> loop, or I could create an artificial deadlock, but I was wondering if
> there is a more elegant way?
>
>
Why can't you just exit the thread?


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