Make TaskContext::getName() a const function

THe undelrying function that it calls in Service is a const function,
and the TaskContext version does not modify anything. Without the const
some compilers will error out, or produce warnings, when trying to
get the name of a const TaskContext object, which is wrong.
tlsf: Add default memory pool statistic functions

Without these statistics on the default memory pool are not
available, as the pointer to the default memory pool ("mp")
is not externally exposed.
tests: Avoid compiler warning
cmake: UseOrocos/typegen_headers: support multiple dependencies correctly
Merge branch 'fixes' into pu2
WIP tests: Expand state machine with operations tests
tests: Expand state machine test with signals from multiple operations
operations: introduce addEventOperation() and enable ORO_SIGNALLING_OPERATIONS by default.

The code/compilation time increase is purely because of the boost::fusion code,
so we eliminate generating that code in addOperation and enable it in addEventOperation.

In this way, we can provide binary compatible signalling operations without putting
the burden on users/components that don't use that feature.

This does introduce an extra shared_ptr in the operation base classes, so excluding
all this code can still be done by turning ORO_SIGNALLING_OPERATIONS off in cmake.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
WIP tests: Expand state machine with operations tests
states: fix double Operation event reception in following state transitions

Several issues were addressed:
* Event handles did not start in disconnected state
* Event handles were disabled/enabled too soon, before the state transition took place
* createEventTransition did not check if the Operation was of type OwnThread
* We create empty OwnThread Operations by default again (reverts previous commit)
* FusedMSignal leaked

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
states: Fix Operation events not respecting transition order

Any extra operation event would cause to overwrite the previous operation event while
still being in the same state.

Added test case + fix (check for current != next in inTransition)

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
Merge remote-tracking branch 'snrkiwi/statemachine-operations' into toolchain-2.7-signalling-ops

Conflicts:
	tests/state_test.cpp
scripting: remove accidental addition of services.

I removed all occurences of provides(foo) in order to prevent
accidental creation of services.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
operations: fix not-signalling-bug in signalling operations

A faulty copy constructor did not copy the msig pointer,
leading to the signal function not being called when the
operation is executed.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
scripting: fix compiler warning regarding parentheses.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
tests: remove accidental conflict markers in state_test.cpp

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
operations: also set the executor of an operation when adding to a Service

One could construct an operation object where the executor engine was never set,
leading to OwnThread calls blocking forever.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
tests: extend state_test with calling operations in all kinds of states.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
service: fix compilation error / wrong fix.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
scripting: Fix caller thread of parser (serious bug)

All Parsed scripts were being executed as if the GlobalEngine was calling
all functions, causing hanging asynchronous operations. I've updated the
API to allow to specify the GlobalEngine explicitly, or the Engine of the
owner's TC.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>