[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: srfi-18 requirements
From: |
Neil Jerram |
Subject: |
Re: srfi-18 requirements |
Date: |
Thu, 07 Feb 2008 23:26:36 +0000 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
"Julian Graham" <address@hidden> writes:
>> How about if the core join-thread takes an optional timeout-val
>> parameter, like SRFI-18 thread-join! ? If no timeout-val was
>> supplied, and the join timed out, the core join-thread would return
>> #f.
>
> For join-thread, sure. What about scm_join_thread? Sorry if I'm
> being obtuse, but my understanding was that you didn't want anything
> like scm_join_thread_timed and that changing the signature of
> scm_join_thread was out of the question. (Or should this enhancement
> only be exposed in Scheme?)
Write scm_join_thread_timed(), which implements all the new behaviour.
Map that to join-thread in Scheme - then that's still back compatible,
because the added args are optional. Then rewrite scm_join_thread()
as a trivial function that just calls scm_join_thread_timed().
See scm_catch_with_pre_unwind_handler() and scm_catch() in throw.c for
a similar example.
Does that sound OK to you?
Regards,
Neil
- Re: srfi-18 requirements, Neil Jerram, 2008/02/02
- Re: srfi-18 requirements, Julian Graham, 2008/02/05
- Re: srfi-18 requirements, Neil Jerram, 2008/02/07
- Re: srfi-18 requirements, Julian Graham, 2008/02/07
- Re: srfi-18 requirements, Julian Graham, 2008/02/11
- Re: srfi-18 requirements, Neil Jerram, 2008/02/19
- Re: srfi-18 requirements, Julian Graham, 2008/02/19
- Re: srfi-18 requirements, Neil Jerram, 2008/02/21
- Re: srfi-18 requirements, Julian Graham, 2008/02/21
- Re: srfi-18 requirements, Neil Jerram, 2008/02/24
- Re: srfi-18 requirements, Julian Graham, 2008/02/24