charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
Re: [charm] Is the constructor guaranteed to be called before a member function?
Chronological Thread
- From: Jozsef Bakosi <jbakosi AT lanl.gov>
- To: Phil Miller <mille121 AT illinois.edu>
- Cc: "charm AT cs.illinois.edu" <charm AT cs.illinois.edu>
- Subject: Re: [charm] Is the constructor guaranteed to be called before a member function?
- Date: Thu, 7 Dec 2017 15:07:36 -0700
- Authentication-results: illinois.edu; spf=softfail smtp.mailfrom=jbakosi AT lanl.gov
Outstanding!
Thanks,
Jozsef
On 12.07.2017 16:05, Phil Miller wrote:
> On Thu, Dec 7, 2017 at 3:55 PM, Jozsef Bakosi
> <[1]jbakosi AT lanl.gov>
> wrote:
>
> Thanks, Phil,
> Good that you mention insert. What if I call insert on an element
> and also put
> in a call to an entry method foo of the same element. Will the
> constructor be
> still called before foo?
>
> Yes, it will. Before the constructor runs, the element does not exist
> for the runtime system to deliver the message bearing the foo() entry
> method call. So, it just buffers it.
>
> J
> On 12.07.2017 15:43, Phil Miller wrote:
> > Yes, for any given element of the array. Creation of an element
> (as
> > opposed to the asynchronous call to insert it) and execution of
> its
> > constructor happen as a single unit.
> > It is possible for entry methods called on one element to
> precede
> > construction of other elements - there's no synchronization
> between
> > elements
> >
> > On Thu, Dec 7, 2017 at 3:39 PM, Jozsef Bakosi
>
> <[1][2]jbakosi AT lanl.gov>
>
> > wrote:
> >
> > Hi folks,
> > Is a constructor guaranteed to be scheduled before any other
> entry
> > method of a
> > chare array? (Even with randomized message queues?)
> > Thanks,
> > Jozsef
- [charm] Is the constructor guaranteed to be called before a member function?, Jozsef Bakosi, 12/07/2017
- Re: [charm] Is the constructor guaranteed to be called before a member function?, Phil Miller, 12/07/2017
- Re: [charm] Is the constructor guaranteed to be called before a member function?, Jozsef Bakosi, 12/07/2017
- Re: [charm] Is the constructor guaranteed to be called before a member function?, Phil Miller, 12/07/2017
- Re: [charm] Is the constructor guaranteed to be called before a member function?, Jozsef Bakosi, 12/07/2017
- Re: [charm] Is the constructor guaranteed to be called before a member function?, Phil Miller, 12/07/2017
- Re: [charm] Is the constructor guaranteed to be called before a member function?, Jozsef Bakosi, 12/07/2017
- Re: [charm] Is the constructor guaranteed to be called before a member function?, Phil Miller, 12/07/2017
Archive powered by MHonArc 2.6.19.