[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Concurrency
From: |
Giuseppe Scrivano |
Subject: |
Re: Concurrency |
Date: |
Mon, 29 Mar 2010 19:37:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (gnu/linux) |
Tom Tromey <address@hidden> writes:
> Also, I think mutex-unlock should throw some kind of error if the mutex
> is owned by a different thread. What do you think of that?
I think we should consider what will happen when the current cooperative
threads model will be replaced and threads will run freely. In that
case probably we will want to use pthread mutexes, not our
implementation. Any invariant we introduce now, must be followed later
as well or we will end to break code. Pthread specifications say for
default mutex'es that the behaviour is undefined when you attempt to
unlock a mutex owned by another thread, instead an error is returned
when a recursive mutex is used. So I think we can rely on this error
and introduce it only if we are not going to use default mutex'es,
unless later we want to implement them on the top of recursive ones.
What do you think?
Cheers,
Giuseppe
- Re: Concurrency, (continued)
- Re: Concurrency, Giuseppe Scrivano, 2010/03/28
- Re: Concurrency, Stefan Monnier, 2010/03/28
- Re: Concurrency, Giuseppe Scrivano, 2010/03/29
- Re: Concurrency, Tom Tromey, 2010/03/29
- Re: Concurrency, Stefan Monnier, 2010/03/29
- Re: Concurrency, Ken Raeburn, 2010/03/29
- Re: Concurrency, Stefan Monnier, 2010/03/29
- Re: Concurrency, Ken Raeburn, 2010/03/29
- Re: Concurrency, Tom Tromey, 2010/03/29
- Re: Concurrency, Stefan Monnier, 2010/03/29
- Re: Concurrency,
Giuseppe Scrivano <=
- Re: Concurrency, Stefan Monnier, 2010/03/29
- Re: Concurrency, Tom Tromey, 2010/03/28
- Re: Concurrency, Daniel Colascione, 2010/03/28
- Re: Concurrency, Stefan Monnier, 2010/03/28
- Re: Concurrency, Tom Tromey, 2010/03/28
- Re: Concurrency, Tom Tromey, 2010/03/28
- Re: Concurrency, Ken Raeburn, 2010/03/29
- Re: Concurrency, Tom Tromey, 2010/03/29
- Re: Concurrency, Stefan Monnier, 2010/03/29
- gsoc for concurrent Emacs? (was: Concurrency), Ted Zlatanov, 2010/03/31