Seisei Itahashi <sei...@csg.ci.i.u-tokyo.ac.jp> wrote on 07/03/2014
06:37:31 PM:
>
> Please imagine there is a simple source code "async clocked(cl) { }".
> I originally wrote the following code into a visitor of X10 compiler
> (polyglot) and compiled the simple code above. In the following X10
> compiler source code I wrote, the method "clocked()" in X10 compiler
> (polyglot) should say "true" because the simple source code above is
> definitely "clocked". However, it said "false".
> So, it means the method "clocked()" in X10 compiler is never be used?
>
Hi,
Sorry for the slow response. When I compile the simple program
below, printing out the value of clocked() within the Lowerer's visitAsync
() method prints true.
So at least for this program, clocked is being set correctly on the
async.
I'd suggest first seeing if you can verify this behavior with this
program on your version of the compiler, then try to see if the value of
clocked() is different in your visitor.
--dave
class Test {
public static def main(Rail[String]) {
clocked finish {
for (j in 1..10) {
clocked async {
for (i in 1..5) {
Console.OUT.println("before "+j+" "+i);
Clock.advanceAll();
Console.OUT.println("after "+j+" "+i);
}
}
}
}
}
}
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users