Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: blessing support in new threads::shared ?

by renodino (Curate)
on Feb 26, 2006 at 21:46 UTC ( #532921=note: print w/ replies, xml ) Need Help??


in reply to Re: blessing support in new threads::shared ?
in thread blessing support in new threads::shared ?

Ah. I tend to use isa(), so I've not hit that yet.

And while I've got your attention...

Might you be persuaded to make threads::shared::_id() (or something similar) a public method ? When marshalling structures/objects between threads, its nice to be able to test if something is already shared, and just pop it into a queue, rather than (de/re)constructing. I'm currently using _id(), but using an obviously private method makes me nervous.


Comment on Re^2: blessing support in new threads::shared ?
Re^3: blessing support in new threads::shared ?
by jdhedden (Deacon) on Feb 27, 2006 at 20:32 UTC
    I'm working on an update to threads::shared right now. There will be only minor changes: An update to ppport.h and improvements in the docs (notably information regarding the use of bless with shared variables). I'll add an exported function called 'is_shared' that will be an alias to '_id'. That should make it formal enough.

    I, too, used '_id' to test for sharing in the Object::InsideOut module, so I see this as a good addition to the module.

    Update: Uploaded to CPAN on 2006-02-27.


    Remember: There's always one more bug.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://532921]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-11-24 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (135 votes), past polls