[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sleep
From: |
David Sugar |
Subject: |
Re: Sleep |
Date: |
Sat, 20 Dec 2003 06:45:07 -0500 |
User-agent: |
KMail/1.5.3 |
You need a seperate thread to read/receive the xlib events. You can then pass
the events to your sleeping thread through the buffer class, which would then
wake it up when buffered events exist.
On Thursday 18 December 2003 07:21 pm, Julie Russell wrote:
> 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.
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
- Sleep, Julie Russell, 2003/12/18
- Re: Sleep,
David Sugar <=