Saliya Ekanayake <esal...@gmail.com> wrote on 10/26/2012 02:14:34 AM:
>
> I would really appreciate if someone can point me to an explanation
> of PlaceLocalHandle in X10 standard library.
>
> In particular what happens to a PlaceLocalHandle object during an
> "at" place shift?
>
Hi,
There is a header comment at the top of the file, but it is a bit
terse.
One way to think of a PlaceLocalHandle is that it is an opaque id
that can be used to access an object in the local Place. Mentally think
of there being a static field that contains a HashMap in each place and the
PlaceLocalHandle is the key that is used to look up the value in the
HashMap of the current Place.
Across an "at", only the id (the PlaceLocalHandle) is serialized.
There are some examples of using a PlaceLocalHandle in the KMeansDist
sample program.
Inside of the X10 standard library, we use PlaceLocalHandle to
implement DistArray. (more complicated example, but "real" code that uses
PlaceLocalHandle (and CustomSerialization) to build a
communication-efficient distributed data structure).
--dave
------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users