update vs execute

Hi,

In relation to master-slave activities.
I see that the documentation states that one should let the master call
SlaveActivity->execute()
http://www.orocos.org/stable/documentation/rtt/v2.x/doc-xml/orocos-compo...

While the FBsched implementation uses TaskContext->update()
https://github.com/kmarkus/fbsched/blob/master/fbsched.cpp

What is the difference?
And which one is preferred?

Thanks!

Nick

update vs execute

Use update() if calling from Master state machine. I think also from Master c++ code

HTH
S

> On Aug 26, 2015, at 12:07, Dominick Vanthienen <nick [dot] vanthienen [..] ...> wrote:
>
> Hi,
>
> In relation to master-slave activities.
> I see that the documentation states that one should let the master call
> SlaveActivity->execute()
> http://www.orocos.org/stable/documentation/rtt/v2.x/doc-xml/orocos-compo...
>
> While the FBsched implementation uses TaskContext->update()
> https://github.com/kmarkus/fbsched/blob/master/fbsched.cpp
>
> What is the difference?
> And which one is preferred?
>
> Thanks!
>
> Nick