Skip Menu |
 

This queue is for tickets about the threads-shared CPAN distribution.

Report information
The Basics
Id: 75192
Status: resolved
Priority: 0/
Queue: threads-shared

People
Owner: Nobody in particular
Requestors: f.heckes [...] fz-juelich.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: jdhedden [...] cpan.org
Subject: Feature enhancement
Date: Tue, 21 Feb 2012 15:29:25 +0100
To: bug-threads-shared [...] rt.cpan.org
From: Frank Heckes <f.heckes [...] fz-juelich.de>
Download (untitled) / with headers
text/plain 1.3k
Dear Jerry, first of all many thanks providing the great module(s)! My mail is only a request for an enhancement to make reference to functions (methods) also 'sharable' to threads. For a single threaded script I created a 'switch-board' of sorts to call the some function associated with a certain key. This simplifies code maintenance a bit, cause one hasn't has to take care for constructs like 'if ( $var eq ...) { &func_1 } etc...' Do you plan to extend the threads::shared module to support into this direction? For the time being I can live with the workaround above. Would it take much work to implement this feature? Cheers -Frank ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- Kennen Sie schon unsere app? http://www.fz-juelich.de/app
Subject: Sharing Code Refs (was Feature enhancement)
Download (untitled) / with headers
text/plain 511b
Frank Heckes wrote: Show quoted text
> My mail is only a request for an enhancement to make > reference to functions (methods) also 'sharable' to > threads.
If you are talking about passing code references via shared variables: my $shared_code_ref :shared = \&func; there are no plans to support this capability that I know of. Whether or not it is even possible to do this is beyond my understanding. If you are so inclined you can bring this discussion up on the Perl5 Porters Mailing List <perl5-porters@perl.org>.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.