develooper Front page | perl.perl6.users | Postings from September 2017

Re: thread behavior

Thread Previous
Brandon Allbery
September 4, 2017 10:37
Re: thread behavior
Message ID:
On Mon, Sep 4, 2017 at 6:18 AM, Elizabeth Mattijsen <> wrote:

> That can not be relied on in general, I’m afraid.  However, after some
> discussion, it appears that there is some support for an
> "is-initial-thread” method:
> Note that the feeling is that you shouldn’t write code that depends on
> this.

NativeCall users are likely to have a need for code that is guaranteed to
execute on the initial OS thread, and for specific C calls to always be
made on the same OS thread (both of these are related to thread-local
state; the former is often but not always such state initialized by
something not under the caller's control in the initial thread, often by a
shared object).

brandon s allbery kf8nh                               sine nomine associates                        
unix, openafs, kerberos, infrastructure, xmonad

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About