All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sage Weil <sweil@redhat.com>
To: star fan <jfanix@gmail.com>
Cc: Ceph-devel <ceph-devel@vger.kernel.org>, Loic Dachary <loic@dachary.org>
Subject: Re: Ask help for boost::statechart in PG
Date: Sat, 30 Aug 2014 09:14:52 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.00.1408300913230.966@cobra.newdream.net> (raw)
In-Reply-To: <CAOdVJi2e2cBOwRk8TS4Te2eZ1NO2hw26zL6M3Mq94pv60Z9vWQ@mail.gmail.com>

On Sat, 30 Aug 2014, star fan wrote:
> I ask the question because I am not good at  boost::statechart and I
> can't get answer from other way.
> 
> To help me to good understand the PG statechart, I hope someone answer
> below questions:
> In Initial state,
> 1.  why there is not react function for custom_reaction< NullEvt >
> 2. why there is not custom_reaction definition about
> boost::statechart::result react(const MNotifyRec&);

One thing to keep in mind is that the states form a hierarchy.  If a state 
doesn't explicitly handle/react to an event, the parent will.  You'll 
notice that Reset and Started both react to NullEvt, and the other states 
are substates/children of those.

sage

  reply	other threads:[~2014-08-30 16:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-30 12:18 Ask help for boost::statechart in PG star fan
2014-08-30 16:14 ` Sage Weil [this message]
2014-09-01  8:30   ` star fan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.00.1408300913230.966@cobra.newdream.net \
    --to=sweil@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=jfanix@gmail.com \
    --cc=loic@dachary.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.