thanks Ramnivas for the clarification,
so, for example, if i increment counters, compute values ( average,
max, min, standard deviation...) or write logs in a file, all these
part of codes *must* be synchronized as in a regular method. All these
values are shared between threads.
Ramnivas Laddad a écrit :
It certainly can be useful. It really depends on if the aspect
contains shared state that can be used concurrently. In other words,
the situation in an advice isn't much different than a regular method.
-Ramnivas
On Mon, Dec 28, 2009 at 10:12 AM, Jean-Louis.Pasturel
<[email protected] <mailto:[email protected]>>
wrote:
Perhaps a stupid question ;-)
In an advice of an aspect with the default modifier issingleton,
is it usefull to monitor ( synchronized key word) the code bloc of
the advice ?
_______________________________________________
aspectj-users mailing list
[email protected] <mailto:[email protected]>
https://dev.eclipse.org/mailman/listinfo/aspectj-users
------------------------------------------------------------------------
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users