The approach I am thinking of taking for the makearray is this:
/* -------------------------------------------------------------------------
*/
::method makearray guarded
/* -------------------------------------------------------------------------
*/
arr = .array~new(self~queued)
do i = 1 to self~queued
line = self~pull
arr[i]=line
self~queue(line)
end /* DO */
return arr
which in itself seems reasonable enough and leaves the RexxQueue in the
state it started in, but what I am wondering is whether the guarded is
sufficient to prevent the rxqueue device writing to the queue through the
API from a concurrent thread whilst it is being cycled through?
I'm not sure how I would test for this.
thanks
Jon
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel