Fix doc of getenv

Change-Id: Ia5a209a96b4edd0799931d09c9f495990cce6eb4
Reviewed-on: http://gerrit.aldebaran.lan/31934
Reviewed-by: ncornu <ncornu@aldebaran-robotics.com>
Tested-by: ncornu <ncornu@aldebaran-robotics.com>
Fix comment about using qi::Application instead of qi::init

Change-Id: Id54b8303a98a7f45c6d24202b11442559b348bef
Reviewed-on: http://gerrit.aldebaran.lan/32777
Reviewed-by: ncornu <ncornu@aldebaran-robotics.com>
Tested-by: ncornu <ncornu@aldebaran-robotics.com>
Add option to set writable path

Change-Id: I39aa57ff352b78b9044e6f9a6cc2534fd1c6df5d
Reviewed-on: http://gerrit.aldebaran.lan/32820
Reviewed-by: ncornu <ncornu@aldebaran-robotics.com>
Tested-by: gerrit
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
AsioEventLoop: Deny async() calls after stop request.

Change-Id: I98a1c97d0f37eb34cd84c342d5a07a289508cc2a
Reviewed-on: http://gerrit.aldebaran.lan/32137
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
Fix typo in qi-log-context documentation

Change-Id: Idb79e1ff55ab884c1d21fcb539886c3c9d419dfb
Reviewed-on: http://gerrit.aldebaran.lan/32884
Reviewed-by: jsuchard <jsuchard@aldebaran-robotics.com>
Tested-by: ncornu <ncornu@aldebaran-robotics.com>
test_future: Fix too short delay in async call.

Change-Id: I3ad5bec0283ba2efb25e5d8b1e4298b27cb60031
Reviewed-on: http://gerrit.aldebaran.lan/32897
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
stats.hpp: Imported from qitype.

Change-Id: I025fde46a56ac26dd4a2914160c3f1a33c3688d4
Reviewed-on: http://gerrit.aldebaran.lan/32134
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
CMakeLists: Add missing header stats.hpp.

Change-Id: Icd66a3c29f4bf125514b1fac3d710ef0410b10f6
Reviewed-on: http://gerrit.aldebaran.lan/32908
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
PeriodicTask: New.

Change-Id: I2c0d73f64192e3ab1b62d108597cbdf1e886e811
Reviewed-on: http://gerrit.aldebaran.lan/32135
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
EventLoop: Multithreaded asio event loop.

Switch defaultNetworkEventLoop to multithread, but not
defaultObjectEVentLoop, which is used for monothreaded objects.

Change-Id: Ie5cf7debb6068d0030897066978e73853fb249d2
Reviewed-on: http://gerrit.aldebaran.lan/32136
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
EventLoop: Use one asio thread-pool for all default event loops.

Change-Id: I7bf104ee5e7cd30752471570e0c622a60a479a24
Reviewed-on: http://gerrit.aldebaran.lan/32138
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
EventLoop::async: New overload with value support.

Change-Id: I6e0ebd4537a8a29abc199bb18f5a8d0e3832d969
Reviewed-on: http://gerrit.aldebaran.lan/32875
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
Atomic: mark dereference operator const.

Change-Id: Id5f789ec37fddf55b77c69ba6ef50af1dea47fb6
Reviewed-on: http://gerrit.aldebaran.lan/32139
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
EventLoop: new api getEventLoop, getIoService, deprecate old one.

Change-Id: Ic48c5d36a622cf4458ec275161c5d36a94cc1598
Reviewed-on: http://gerrit.aldebaran.lan/32876
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
EventLoop: remove dead code.

Change-Id: Ia431fc33435ff4944c6db412ef081a6fa866564c
Move dlopen fail log from verbose to debug

Change-Id: I29a6a453d0d30bd144fceaca163dc8fa365f29e6
Reviewed-on: http://gerrit.aldebaran.lan/33022
Reviewed-by: lwchhim <lwchhim@aldebaran-robotics.com>
Tested-by: lwchhim <lwchhim@aldebaran-robotics.com>
add clock API based on boost::{chrono,thread}

We mimic the clocks and sleep functions from chrono and thread (in boost
and c++11) and use boost (both chrono and thread) for the
implementation.

* why do we need clocks in libqi?

We could tell people to just use boost::chrono.
But in the future, we want to enable sharing the clock epoch accross
processors and pausing the time (for simulations).
We also probably need common types for durations and time_points accross
all platforms.

* why do we need sleep in libqi?

  We could tell people to just use boost::thread, but that would not work
  for boost::thread <1.50 which has no boost::chrono support, and again,
  once pausing time is implemented, we'll need a specialized sleep_for.

* ok, but right now, why not a simple typedef for clocks?

  indeed, while pausing time is not implemented, a mere

  namespace qi {
  typedef boost::chrono::system_clock system_clock;
  typedef boost::chrono::steady_clock steady_clock;
  }

  would basically do it. However, 1) the steady_clock class also provides a
  fine place where to put the from_int32... utils 2) it enables us to use
  int64_t instead of intleast64_t as rep.

Part of redmine #17438

Change-Id: I28139b1791ce51fdfefe6585f9ddef6f0d178825
Replace old getDefault(Object|ThreadPool|Network)EventLoop with getEventLoop

Change-Id: I997ef7e398ddc558209c3f61ce2179fe34033a97
Reviewed-on: http://gerrit.aldebaran.lan/33097
Tested-by: gerrit
Reviewed-by: ncornu <ncornu@aldebaran-robotics.com>
Fix initialization of SDK path for applications in UTF-8 path (fix bug #18146)

Edit: sorry for the duplicate review, but now I have an issue number to
associate with

Change-Id: Idee04299fa2502a9d652f7ebbf24670de68fb1e7
Reviewed-on: http://gerrit.aldebaran.lan/33293
Reviewed-by: hcuche <hcuche@aldebaran-robotics.com>
Reviewed-by: gschweitzer <gschweitzer@aldebaran-robotics.com>
Tested-by: gschweitzer <gschweitzer@aldebaran-robotics.com>
clock: export template instanciation for use by qitype

Change-Id: I26ca83c921cbc7080c1c909e6411a49994345d9c
Reviewed-on: http://gerrit.aldebaran.lan/33310
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Tested-by: cgestes <gestes@aldebaran-robotics.com>