[Pharo-project] SharedQueue
Hi, anybody knows why exists SharedQueue2 ?? Seem to be used only in test cases... Gabriel
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
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
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 :)
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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (4)
-
Gabriel Cotelli -
Göran Krampe -
Marcus Denker -
Stéphane Ducasse