Sharing Object::InsideOut object between threads

Sharing Object::InsideOut object between threads

am 03.03.2010 12:27:57 von menth0l

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@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Sharing Object::InsideOut object between threads

am 06.03.2010 09:18:58 von menth0l

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@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/