Bug 100691 - [NEW PORT] devel/p5-threads: Perl interpreter-based threads
Summary: [NEW PORT] devel/p5-threads: Perl interpreter-based threads
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Cheng-Lung Sung
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-21 21:50 UTC by gslin
Modified: 2006-08-30 02:45 UTC (History)
1 user (show)

See Also:


Attachments
p5-threads-1.37.shar (3.51 KB, text/plain)
2006-07-21 21:50 UTC, gslin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description gslin 2006-07-21 21:50:14 UTC
Perl 5.6 introduced something called interpreter threads. Interpreter
threads are different from 5005threads (the thread model of Perl 5.005)
by creating a new Perl interpreter per thread, and not sharing any
data or state between threads by default.

Prior to Perl 5.8, this has only been available to people embedding 
Perl, and for emulating fork() on Windows.

The threads API is loosely based on the old Thread.pm API. It is very
important to note that variables are not shared between threads, all
variables are by default thread local. To use shared variables one
must use threads::shared.

It is also important to note that you must enable threads by doing use
threads as early as possible in the script itself, and that it is not
possible to enable threading inside an eval "", do, require, or use.
In particular, if you are intending to share variables with
threads::shared, you must use threads before you use threads::shared.
(threads will emit a warning if you do it the other way around.)

WWW:	http://search.cpan.org/dist/threads/

Generated with FreeBSD Port Tools 0.77
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-07-21 21:50:33 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clsung

clsung@ wants his PRs
Comment 2 Cheng-Lung Sung freebsd_committer freebsd_triage 2006-07-24 07:30:58 UTC
State Changed
From-To: open->feedback

The port's README says 
"This module needs perl 5.8.0 or later compiled with 'useithreads'." 
Can you explain why you made the patch to reduce the requirement?
Comment 3 Cheng-Lung Sung freebsd_committer freebsd_triage 2006-08-30 02:45:11 UTC
State Changed
From-To: feedback->closed

New port added. Thank You.