[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sleep
From: |
Julie Russell |
Subject: |
Sleep |
Date: |
Fri, 19 Dec 2003 11:21:50 +1100 |
Hi Everyone,
I am programming in c++ and xlib using common c++ threads. I want to sleep a
thread (which I have initiated as detached). During that process I want to
recieve events from the xlib event loop and if triggered, interrupt the
sleeping thread. The problem is, while that thread is asleep, for some
reason, my event loop appears to be blocked. How can I sleep a thread so
that the loop doesn't block and then interrupt it cleanly. My event loop is
in a separate class implemented as a singleton.
Cheers,
Julie.