comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: best practice: error handling
Date: Sat, 11 Jun 2011 17:12:23 +0100
Date: 2011-06-11T17:12:23+01:00	[thread overview]
Message-ID: <m2sjrg2vq0.fsf@pushface.org> (raw)
In-Reply-To: op.vwwyi11bule2fv@douda-yannick

"Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr> writes:

> I would say : at least the “errno” strategy, is not concurrency
> friendly. if two threads of a same process commit errors, then you are
> in trouble (one may overwrite the “errno” value of the
> other). Exceptions would be cleaner for such a case (providing your
> “errno” is not owned by threads).

In VxWorks, errno is task-specific. (with GNAT, all Ada tasks are
VxWorks tasks, but there are VxWorks tasks which aren't Ada tasks).



  reply	other threads:[~2011-06-11 16:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-31 14:01 best practice: error handling milouz
2011-05-31 17:13 ` Vinzent Hoefler
2011-05-31 17:57   ` AdaMagica
2011-06-11 13:38   ` Yannick Duchêne (Hibou57)
2011-05-31 18:08 ` Jeffrey Carter
2011-05-31 20:02   ` Dmitry A. Kazakov
2011-05-31 20:35     ` Jeffrey Carter
2011-05-31 21:40       ` Dmitry A. Kazakov
2011-06-11 13:57     ` Yannick Duchêne (Hibou57)
2011-06-11 14:07       ` Dmitry A. Kazakov
2011-06-12  5:19         ` Randy Brukardt
2011-06-11 13:48   ` Yannick Duchêne (Hibou57)
2011-06-11 13:31 ` Yannick Duchêne (Hibou57)
2011-06-11 16:12   ` Simon Wright [this message]
2011-06-11 16:26   ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox