develooper Front page | perl.perl5.porters | Postings from September 2016

[perl #129151] Clarify build options in perlembed doc

Thread Next
James E Keenan via RT
September 1, 2016 23:00
[perl #129151] Clarify build options in perlembed doc
Message ID:
On Wed Aug 31 05:57:30 2016, wrote:
> At above lines in perlembed doc it mentions options "-Dusethreads
> -Duseithreads". 

I should note that these lines are unchanged since 2001.

> But useithreads is mostly documented nowhere else. 

Actually, 'useithreads' is extensively discussed in pod/perlthrtut.pod.

> And
> today this is always equivalent to a single "-Dusethreads", which is
> mentioned in Perl INSTALL doc. 

What is your source for the equivalence of "-Dusethreads" and "-Duseithreads"?  (I'm not enough of a threads user/expert to confirm that statement.  I do know that when I do smoke tests for FreeBSD, I include '-Duseithreads' because that's how the system perl on that OS is configured.)

> IMHO mentioning both "-Dusethreads
> -Duseithreads" can confuse people. And I would suggest change these two
> places to "-Dusethreads".

I suspect you are correct, but I think we need input from people who know more about threads than I do.

> btw, while that paragraph at
> talks
> about running multiple interpreters in multiple OS threads, the example
> after it (at
> is
> just about interleaving two interpreters in one thread. I wonder if we can
> add an example for multiple OS threads.

Again, need comment from more informed people.

> Thanks,
> Zhenyi

James E Keenan (

via perlbug:  queue: perl5 status: new

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