harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject [portlib] Re: hythread_detach limitation
Date Thu, 21 Jun 2007 20:46:25 GMT
Angela Lin wrote:
> Hi folks,
> Could you take a peek at:
> https://issues.apache.org/jira/browse/HARMONY-4237
> Text:
> The docs/comments for hythread_detach() and
> HyThreadLibrary->thread_detach() should be amended to note the
> limitation that these functions can only be used to detach the
> _current_ thread (and not any arbitrary thread).
> Because these funcs accept a hythread_t parameter, this may not be obvious.
> This limitation exists because the implementation may use some thread
> local storage.
> It's not quite a bug. I think it's a limitation that was accidentally
> omitted from our original document/spec for the hythread API.
> I hope you think this limitation is reasonable - it's
> implementation-influenced, but I think other implementations might
> want to use thread local storage too.

So why does this function need the argument at all, especially since you
can pass NULL to mean the current thread? i.e. when would you call this
with anything other than MACRO_SELF() or NULL (which has the same effect).


View raw message