develooper Front page | perl.perl5.porters | Postings from August 2002

RE: Thread::Use - use a module inside a thread only

Thread Previous | Thread Next
Nick Ing-Simmons
August 1, 2002 00:44
RE: Thread::Use - use a module inside a thread only
Message ID:
Paul Green <> writes:
>Maybe an I/O layer should be required to explicitly declare itself

The IO layer's ->Dup method is free to "fail" in any way it chooses
when asked to do a clone-for-thread.

>(Or whatever thread-xxx term I mean here).  Any layer not
>declared thread-safe should be removed when a new thread is created. (And
>now perl can print a warning, since it is doing something you might not like
>& might not realize is happening).

It may make sense eventually to add a flag bit and do the fail-ing in perlio.c 
but until we see a "pattern" in types of problem it is better 
if layer's own code decides what to do.

Nick Ing-Simmons

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