develooper Front page | perl.perl5.porters | Postings from March 2006

threads::CLONE ? was: [PATCH] 2nd patch to sync blead 'threads' with CPAN

Thread Next
From:
Rafael Garcia-Suarez
Date:
March 25, 2006 09:30
Subject:
threads::CLONE ? was: [PATCH] 2nd patch to sync blead 'threads' with CPAN
Message ID:
b77c1dce0603250930p1a693ee8vc3f3f1ae1673d9f2@mail.gmail.com
On 3/24/06, Jerry D. Hedden <jerry@hedden.us> wrote:
> The attached is the second patch for bringing the threads module in
> blead up to sync with the CPAN version.
>
> Update to version 1.18
> 64-bit TIDs
> Support for threads->list in a scalar context
> Implemented ->object and ->equal in XS
> New method ->_handle (documented in threads.pm)
> Consistent use of threads->create instead of threads->new
> threads.xs
>     Added additional static declarations
>     Changed I32s to IVs throughout
>     Removed unused Perl_ithread_CLONE function
>     Rewrite of XS methods for improved usage messages,
>         code efficiency and consistent style

There are a number of changes that look weird :
* you static-ify some functions whose names begin with Perl_... and
this naming * convention in the perl core denotes non-static
functions, member of the API.
* you remove Perl_ithreads_CLONE(). This function isn't used, right,
but it seems it's by mistake and that the intent was to have a
threads::CLONE() perl function, in accordance with the XS declaration:
MODULE = threads                PACKAGE = threads       PREFIX = ithread_
I'm not expert with the threads internals, so if someone has advice on
this, please comment.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About