public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jonathan Larmour <jlarmour@redhat.com>
To: Rosimildo daSilva <rosimildo@hotmail.com>
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] Nested calls to Mutexes
Date: Wed, 21 Mar 2001 05:42:00 -0000	[thread overview]
Message-ID: <3AB8AFA1.3D50C070@redhat.com> (raw)
In-Reply-To: <F309LwxTQTYkWSzsVA2000068c5@hotmail.com>

Rosimildo daSilva wrote:
> 
> Many implementations out there support the concept of
> nested/balanced mutex calls. That is the programmer's
> expectation. Sorry, to put this way, but I consider
> this a *bug*.

POSIX doesn't. Quite the opposite in fact, and that's hardly an obscure
standard....
"An attempt by the current owner of a mutex to relock the mutex results in
undefined behavior".

And "undefined behavior" means anything from the recursive mutexes you want
to contacting NORAD with the missile codes to start World War III.

So don't do this, the world is in your hands. :-)

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

  parent reply	other threads:[~2001-03-21  5:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-21  5:18 Rosimildo daSilva
2001-03-21  5:29 ` Bart Veer
2001-03-21  5:42 ` Jonathan Larmour [this message]
2001-03-21  6:26   ` Andrew Lunn
2001-03-21  6:45     ` Lewin A.R.W. Edwards
2001-03-22  8:46 ` Jonathan Larmour
2001-04-04  8:08   ` martin
2001-04-04  8:17     ` Jonathan Larmour
2001-03-21  6:06 Rosimildo daSilva
2001-03-21  6:54 Rosimildo daSilva
2001-04-04 18:29 Rosimildo daSilva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3AB8AFA1.3D50C070@redhat.com \
    --to=jlarmour@redhat.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=rosimildo@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).