From: "Rodrigo Garcia" <rodrigo.garcia@epfl.ch>
Subject: Re: sigsuspend or pause system calls in Ada
Date: Tue, 11 Feb 2003 20:56:03 +0100
Date: 2003-02-11T20:56:03+01:00 [thread overview]
Message-ID: <3e495554$1@epflnews.epfl.ch> (raw)
In-Reply-To: 3e490ec7_4@news.arrakis.es
"alfonso acosta" <alfonso_acosta_mail@yahoo.es> wrote in message
news:3e490ec7_4@news.arrakis.es...
>
> > Do you really *need* to use them?
> Well, I need my rocedure to be waiting for a signal, maybe it works if I
> just do
>
> while True loop;
> delay 1;
> end loop;
>
> signals will be handled when delay is executed?
Hmm, then I think it is better to suspend the thread by calling an entry
on a protected object. The protected object will have a procedure attached
to the signal you are waiting for. This procedure will open the barrier when
it receives the signal. Got it? Do you prefer it in Spanish? ;^)
BTW, how are you handling the signals you receive?
Rodrigo
prev parent reply other threads:[~2003-02-11 19:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-11 0:58 sigsuspend or pause system calls in Ada alfonso acosta
2003-02-11 8:08 ` Samuel Tardieu
2003-02-11 14:37 ` Rodrigo Garcia
2003-02-11 14:53 ` alfonso acosta
2003-02-11 19:56 ` Rodrigo Garcia [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox