NAV

Import the package

You can import pid-threading as usual with PID. In the root CMakelists.txt file of your package, after the package declaration you have to write something like:

PID_Dependency(pid-threading)

It will try to install last version of the package.

If you want a specific version (recommended), for instance the currently last released version:

PID_Dependency(pid-threading VERSION 0.8)

Notice that PID will automatically install the last available patch version of the package when configuring the project with the option REQUIRED_PACKAGES_AUTOMATIC_DOWNLOAD to ON (default value).

Components

synchro

This is a shared library (set of header files and a shared binary object).

exported dependencies:

include directive :

Not specified (dangerous). You can try including any or all of these headers:

#include <pid/concurrent_queue.h>
#include <pid/message_queue.h>
#include <pid/periodic.h>
#include <pid/rw_barrier.h>
#include <pid/sync_signal.h>
#include <pid/synchro.h>
#include <pid/time_reference.h>
#include <pid/timer.h>

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	synchro
				PACKAGE	pid-threading)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	synchro
				PACKAGE	pid-threading)

loops

This is a shared library (set of header files and a shared binary object).

exported dependencies:

include directive :

Not specified (dangerous). You can try including any or all of these headers:

#include <pid/log/pid-threading_loops.h>
#include <pid/loops.h>
#include <pid/loops/loop.h>
#include <pid/loops/loop_common.h>
#include <pid/loops/loop_synchronization.h>
#include <pid/loops/loop_variables.h>
#include <pid/loops/loops_manager.h>

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	loops
				PACKAGE	pid-threading)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	loops
				PACKAGE	pid-threading)