[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Redoing conditional thread support
From: |
Marius Vollmer |
Subject: |
Re: Redoing conditional thread support |
Date: |
15 Oct 2002 12:43:22 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
Christopher Cramer <address@hidden> writes:
> On Thu, Oct 10, 2002 at 04:51:01PM +0200, Marius Vollmer wrote:
> > I'm about to reorganize our conditional threading stuff so that there
> > is always a thread API (scm_current_thread, scm_call_with_new_thread,
> > mutices, condition variables, etc), but when you configure
> > "--without-threads" you get a null-thread implementation that doesn't
> > allow the creation of new threads. Thus there will always be only a
> > single thread.
>
> I assume scm_call_with_new_thread without threads would work like
> scm_catch?
No, it would throw an error.
> And I guess trying to lock a mutex that's already locked would give
> an exception.
No, it would block until the mutex is unlocked, which might be done by
a async. I'm not sure whether that's a good idea, tho...