SharedQueue

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

SharedQueue

gcotelli
Hi,

anybody knows why exists SharedQueue2 ??

Seem to be used only in test cases...

Gabriel

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: SharedQueue

Marcus Denker-3

On 04.06.2009, at 19:09, Gabriel Cotelli wrote:

> Hi,
>
> anybody knows why exists SharedQueue2 ??
>
> Seem to be used only in test cases...

There used to be problems with SharedQueue, so Lex Spoon (I think)  
proposed
to use a Monitor based one with tests. We added that to 3.9 at some  
point, with
the idea of testing it.

I think SharedQueue2 can be removed, there have been bugfixes included  
for SharedQueue
in the meantime.

        Marcus



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: SharedQueue

Göran Krampe
Hi!

Marcus Denker wrote:

> On 04.06.2009, at 19:09, Gabriel Cotelli wrote:
>
>> Hi,
>>
>> anybody knows why exists SharedQueue2 ??
>>
>> Seem to be used only in test cases...
>
> There used to be problems with SharedQueue, so Lex Spoon (I think)  
> proposed
> to use a Monitor based one with tests. We added that to 3.9 at some  
> point, with
> the idea of testing it.
>
> I think SharedQueue2 can be removed, there have been bugfixes included  
> for SharedQueue
> in the meantime.
>
> Marcus

If you really want "The best" you could also take a look at
SharedStreams on SM:

http://map.squeak.org/packagebyname/sharedstreams

...it has a IMHO more solid SharedQueue implementation
(SharedBufferStream) (IIRC we found several problems with SharedQueue)
that is also much faster in some operations. The description says it is
"for strings and bytes" but it should be updated because in fact it
works for any kind of objects.

regards, Göran


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: SharedQueue

Stéphane Ducasse
In reply to this post by gcotelli
sharedQueue2 works on streams.

On Jun 5, 2009, at 1:09 AM, Gabriel Cotelli wrote:

> Hi,
>
> anybody knows why exists SharedQueue2 ??
>
> Seem to be used only in test cases...
>
> Gabriel
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: SharedQueue

Stéphane Ducasse
In reply to this post by Göran Krampe
>>> If you really want "The best" you could also take a look at
> SharedStreams on SM:
>
> http://map.squeak.org/packagebyname/sharedstreams
>
> ...it has a IMHO more solid SharedQueue implementation
> (SharedBufferStream) (IIRC we found several problems with SharedQueue)
> that is also much faster in some operations. The description says it  
> is
> "for strings and bytes" but it should be updated because in fact it
> works for any kind of objects.

yes we want the best :)


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project