Sharing Object::InsideOut object between threads

Hi,

I'm having some problems with passing an object of Object::InsideOut
type through Thread::Queue object. Here's some simple illustration of
this problem:

http://pastebin.com/PEC7EMB8

Why refcount() shows "3" for object dequeued from queue? And why is
object not destroyed as it should be? Is there some mistake in my code
or does the documentation for Object::InsideOut lies about the thread-
safety? Is there any other way to pass an *objects* between threads?

--
menth0l


--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
menth0l [ Mi, 03 März 2010 12:27 ] [ ID #2034060 ]

Re: Sharing Object::InsideOut object between threads

I've contacted module author on that matter and it turned out there
was a bug in OIO 3.59. Fixed version 3.63 is already available on
CPAN.

--
menth0l


--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
menth0l [ Sa, 06 März 2010 09:18 ] [ ID #2034258 ]
Perl » gmane.comp.lang.perl.beginners » Sharing Object::InsideOut object between threads

Vorheriges Thema: Test if directory is not empty
Nächstes Thema: FW: Can anybody explain me what this shebang line is doing?