If a resource is shared among different processors and access to it should be exclusive, in SCOOP it is usually put in a separate region. Then passing the resource as an argument does the trick: the feature gets an exclusive access to it. For example,
r1, r2, r3: separate RESOURCE
...
foo (x, y: separate RESOURCE)
...
bar (x, y: separate RESOURCE)
...
foo (r1, r2) -- Operate on r1 and r2 (no other processor gets access to r1 and r2, but may use r3)
bar (r2, r3) -- Operate on r2 and r3 (no other processor gets access to r2 and r3, but may use r1)
Regards,
Alexander Kogtenkov
lrix <lr...@jinny.com>: