[armedbear-devel] hang with threads:object-wait

James M. Lawrence llmjjmll at gmail.com
Mon Feb 3 18:14:42 UTC 2014


On Sat, Feb 1, 2014 at 2:31 PM, Erik Huelsmann <ehuels at gmail.com> wrote:
> Hi James,
>
> Thanks for confirming that.
>
> What would you consider the best option when the timeout value becomes too
> close to 0? I see 2:
>
> 1. Don't wait.
> 2. Wait at least 1 ns

In the context of bordeaux-threads, I think it would be unexpected if
condition-wait did no waiting at all, even if given a timeout that
will surely be exceeded. In the limit of the timeout approaching zero,
I would say that condition-wait converges to pthread_yield rather than
a noop.



More information about the armedbear-devel mailing list