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

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

Thread Next
Rafael Garcia-Suarez
March 25, 2006 09:30
threads::CLONE ? was: [PATCH] 2nd patch to sync blead 'threads' with CPAN
Message ID:
On 3/24/06, Jerry D. Hedden <> 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
> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About