bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interrupt


From: David Sugar
Subject: Re: Interrupt
Date: Sat, 20 Dec 2003 06:39:19 -0500
User-agent: KMail/1.5.3

One way to do this is to sleep the thread on a "conditional", and then use a 
signal to "wake" it early.  This of course only works on pthread/posix 
systems.  The nearest equiv. in w32 is to use a timed semaphore wait, but 
that is not supported in pthreads :).  I suppose we could construct an 
alrernate sleep object that uses one or the other method based on the target, 
like was done for the Buffer class....

On Friday 19 December 2003 01:40 am, Julie Russell wrote:
> Hi there,
>
> I want to interrupt a thread from it's sleeping process, yet I can't seem
> to see an interrupt method in the documentation. Is there one, and if I use
> it, does it stop sleeping and resume the next line of execution, or how
> does it work?
>
> Thanks in advance,
> Julie.
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp





reply via email to

[Prev in Thread] Current Thread [Next in Thread]