qi::Application: New, generic startup/teardown helper.

Change-Id: I9b96189ed2ddac71fc1b673076c391cee64ffda8
Reviewed-on: http://gerrit.aldebaran.lan:8080/3868
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
Application: takes argc/argv by ref, gives us oportunity to modify them.

Change-Id: I8091851b3bd2d9a57543898120b8566a41d8d227
Reviewed-on: http://gerrit.aldebaran.lan:8080/3873
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
Application: API to handle options. Use it for qi::Log.

Change-Id: I70c3294411a6819f14b3cb9a93db8874409cc789
Reviewed-on: http://gerrit.aldebaran.lan:8080/3900
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Tested-by: cgestes <gestes@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Application::loadModule with QI_AT_ENTER handling.

Change-Id: If03171692a68a136b22e7ce1157cfa2be4e3d129
Reviewed-on: http://gerrit.aldebaran.lan:8080/3952
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
qi::init: Instanciate an Application so that at least AT_ENTER works.

Change-Id: Id149f349afe284f3d657b2a1c59ffd4e4efb554a
Reviewed-on: http://gerrit.aldebaran.lan:8080/4052
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Tested-by: cgestes <gestes@aldebaran-robotics.com>
Application: atSignal, stop, atStop.

Change-Id: I6da2b22020f486b774a75450e8a61b005d129361
Reviewed-on: http://gerrit.aldebaran.lan:8080/4048
Reviewed-by: llec <llec@aldebaran-robotics.com>
Tested-by: mnottale <mnottale@aldebaran-robotics.com>
Application: Properly terminate io_service handling signals.

Change-Id: I91da7466107fbfbd71b1498fcea56e0b56bfba01
Reviewed-on: http://gerrit.aldebaran.lan:8080/4207
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Tested-by: cgestes <gestes@aldebaran-robotics.com>
application: teardown the asio::io_service

Change-Id: Iebbb79499acf4114bca4ee84df8c52c17132faca
Reviewed-on: http://gerrit.aldebaran.lan:8080/4225
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: cgestes <gestes@aldebaran-robotics.com>
locale: allocate at first init

Change-Id: Ibf6f8a3f93671318cf4c29accedb47fada722a63
Reviewed-on: http://gerrit.aldebaran.lan:8080/4269
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Tested-by: cgestes <gestes@aldebaran-robotics.com>
qi::os::waitpid: do not segfault when status is null

Change-Id: I7f563bb5dc06d113977cbd656fe1813faa8b67bf
Reviewed-on: http://gerrit.aldebaran.lan:8080/4294
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Tested-by: cgestes <gestes@aldebaran-robotics.com>
Application: clean io_service shutdown

Change-Id: Ib86755f65f19294d846339638dfad60ec3cbb179
Reviewed-on: http://gerrit.aldebaran.lan:8080/4240
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: cgestes <gestes@aldebaran-robotics.com>
qi::Application: call exit when SIGTERM or SIGINT are called for the second time

Change-Id: I31cf63ecdb6a094bc5c78409aeb031804ed5de2e
Reviewed-on: http://gerrit.aldebaran.lan:8080/4289
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Tested-by: cgestes <gestes@aldebaran-robotics.com>
Add qi::os::getMachineId

Change-Id: Ia96ca454b4e09cbc77e86ca65ab8a5fd16777074
Reviewed-on: http://gerrit.aldebaran.lan:8080/4692
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Tested-by: jfreche <jfreche@aldebaran-robotics.com>
Added new types support for qi::atomic

Change-Id: I6b92e3744e568c27c1bb6d863815dbfe03d3bf82
Reviewed-on: http://gerrit.aldebaran.lan:8080/5787
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Tested-by: cgestes <gestes@aldebaran-robotics.com>
Add qi::ThreadPool class

Change-Id: Ib1ee70c4b340eeb80981b130442e5535d25a9e35
Reviewed-on: http://gerrit.aldebaran.lan:8080/5526
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Reviewed-by: jfreche <jfreche@aldebaran-robotics.com>
Tested-by: jfreche <jfreche@aldebaran-robotics.com>
Reviewed-by: llec <llec@aldebaran-robotics.com>
test: fix compilation

Change-Id: I18614702dc1692b27807b62c44fafc0ab82239c7
Reviewed-on: http://gerrit.aldebaran.lan:8080/6158
Reviewed-by: jfreche <jfreche@aldebaran-robotics.com>
Tested-by: cgestes <gestes@aldebaran-robotics.com>
qi::Application: mark QI_COMMAND_LINE_OPTIONS as internal.

Change-Id: Ie4fc0caa10b99773795b71f456359d760b408bcc