Future: Embed a lighteweight 'signal'.

We lose features (tracker, disconnect), but they are not realy
needed and cost an arm and a leg performance-wise.

Change-Id: I32e789f951b16b34b2ac09ae8712604e2c9da7f3
Reviewed-on: http://gerrit.aldebaran.lan:8080/13462
Tested-by: gerrit
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
Future: Use a mempool and make_shared.

On FutureState<T> used only in shared_ptr, make_shared
is faster than a mempool.

Change-Id: I96f8327500905e234dd4d36903f11139b94b8d60
Reviewed-on: http://gerrit.aldebaran.lan:8080/13515
Tested-by: gerrit
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
Use boost::make_shared.

Faster. But *not* on mempooled classes.

Change-Id: I896ce6e82f3bde37409207ffc0fa685983cf0557
Reviewed-on: http://gerrit.aldebaran.lan:8080/13516
Tested-by: gerrit
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
EventLoopThreadPool: minimize boost::function copy.

Change-Id: Id6f338353ebb8ba533fc99d160745c8dae24664c
Reviewed-on: http://gerrit.aldebaran.lan:8080/13530
Tested-by: gerrit
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
ThreadPool: Minimize boost::function copy.

Change-Id: I49854829f8886d521b17d82b9955510defe89419
Reviewed-on: http://gerrit.aldebaran.lan:8080/13531
Tested-by: gerrit
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
Application: stop signal handling as late as possible.

Change-Id: I2f303f0f6c7191bc9ecbbbe07628b7a5d2a8c9a7
Reviewed-on: http://gerrit.aldebaran.lan:8080/13720
Tested-by: gerrit
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
Application : set globalInitialized to false on Application destruction

Change-Id: I05d90109dc5fb1d67545d852f4c6264744aaaaf9
Reviewed-on: http://gerrit.aldebaran.lan:8080/13978
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Reviewed-by: llec <llec@aldebaran-robotics.com>
Reviewed-by: proullon <proullon@aldebaran-robotics.com>
Tested-by: proullon <proullon@aldebaran-robotics.com>
Application : Add terminated().

+ Revert "Application : set globalInitialized to false on Application destruction"

Change-Id: I7ef9d3cc3c76f2bd5c8355ace071fcd044da4291
Reviewed-on: http://gerrit.aldebaran.lan:8080/14002
Tested-by: proullon <proullon@aldebaran-robotics.com>
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>