Alex Flint
2010-05-06 14:55:52 UTC
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?
Cheers,
Alex
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?
Cheers,
Alex