From: "Rubén Pérez de Aranda Alonso" <rperez@sidsa.es>
To: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] pthread_mutex_unlock when mutex is not locked
Date: Wed, 27 Apr 2005 14:37:00 -0000 [thread overview]
Message-ID: <426FA0EB.2050100@sidsa.es> (raw)
In-Reply-To: <87wtqogztz.fsf@osv.topcon.com>
Ok, I agree.
Sergei Organov wrote:
>RubÑân PÑârez de Aranda Alonso <rperez@sidsa.es> writes:
>
>
>>Ok,
>>I understand you explain me. The standard also defines that a mutex
>>locked by a thread must be unlocked by the same thread. However,
>>many implementations of Pthreads allow use the mutex to signal events
>>carring out lock and unlock of the mutex from different threads.
>>
>>
>
>Really? The mutex is invented for what it is in it's name: "MUTual
>EXclusion". You definitely can abuse implementation details that make
>some code work on some implementations, but isn't it better to use
>the right tool instead?
>
>That said, there is nothing wrong with semantic of mutexes in eCos.
>
>
>
--
______________________________________________________________
Rubén Israel Pérez de Aranda Alonso
SIDSA - Semiconductores Investigación y Diseño S.A.
Parque Tecnológico de Madrid Phone : +34 91 803 5052
C/ Torres Quevedo, nº 1 Fax: +34 91 803 9557
28760 TRES CANTOS (Madrid) (SPAIN)
e-mail: rperez@sidsa.com www.sidsa.com
______________________________________________________________
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2005-04-27 14:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-27 8:30 Rubén Pérez de Aranda Alonso
2005-04-27 9:00 ` Sergei Organov
2005-04-27 9:54 ` Rubén Pérez de Aranda Alonso
2005-04-27 10:18 ` Andrew Lunn
2005-04-27 11:51 ` Nick Garnett
2005-04-27 12:38 ` Rubén Pérez de Aranda Alonso
2005-04-27 13:44 ` Sergei Organov
2005-04-27 14:37 ` Rubén Pérez de Aranda Alonso [this message]
2005-04-28 10:15 ` Nick Garnett
2005-04-29 13:49 ` Rubén Pérez de Aranda Alonso
2005-04-27 12:15 ` Sergei Organov
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=426FA0EB.2050100@sidsa.es \
--to=rperez@sidsa.es \
--cc=ecos-discuss@sources.redhat.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).