mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
Threading: Scrubbed usage of threading in libraries
Removed include for pthreads from libraries where it appears NOT to be used. Added ${CMAKE_THREAD_LIBS_INIT} to CMakeLists.txt for libraries which appear to require threading. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
parent
7422ec937c
commit
f97a62b055
@ -26,7 +26,6 @@
|
|||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <pthread.h>
|
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
@ -3,5 +3,5 @@ if (MRAA_FIRMATA_FOUND)
|
|||||||
set (libdescription "Curie IMU Sensor using Firmata")
|
set (libdescription "Curie IMU Sensor using Firmata")
|
||||||
set (module_src ${libname}.cpp)
|
set (module_src ${libname}.cpp)
|
||||||
set (module_hpp ${libname}.hpp)
|
set (module_hpp ${libname}.hpp)
|
||||||
upm_module_init (mraa)
|
upm_module_init(mraa ${CMAKE_THREAD_LIBS_INIT})
|
||||||
endif ()
|
endif ()
|
||||||
|
@ -2,4 +2,4 @@ set (libname "lol")
|
|||||||
set (libdescription "Lots of LEDs (LoL) Array Rev A")
|
set (libdescription "Lots of LEDs (LoL) Array Rev A")
|
||||||
set (module_src ${libname}.cxx)
|
set (module_src ${libname}.cxx)
|
||||||
set (module_hpp ${libname}.hpp)
|
set (module_hpp ${libname}.hpp)
|
||||||
upm_module_init(mraa)
|
upm_module_init(mraa ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <pthread.h>
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "mma7455.hpp"
|
#include "mma7455.hpp"
|
||||||
|
@ -5,7 +5,7 @@ if (OPENZWAVE_FOUND)
|
|||||||
set (module_hpp ${libname}.hpp ozwinterface.hpp ozwdump.hpp aeotecss6.hpp aeotecsdg2.hpp aeotecdw2e.hpp aeotecdsb09104.hpp tzemt400.hpp)
|
set (module_hpp ${libname}.hpp ozwinterface.hpp ozwdump.hpp aeotecss6.hpp aeotecsdg2.hpp aeotecdw2e.hpp aeotecdsb09104.hpp tzemt400.hpp)
|
||||||
|
|
||||||
set (reqlibname "libopenzwave")
|
set (reqlibname "libopenzwave")
|
||||||
upm_module_init(${OPENZWAVE_LIBRARIES})
|
upm_module_init(${OPENZWAVE_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
||||||
target_include_directories(${libname} PUBLIC ${OPENZWAVE_INCLUDE_DIRS})
|
target_include_directories(${libname} PUBLIC ${OPENZWAVE_INCLUDE_DIRS})
|
||||||
|
|
||||||
# openzwave/aes/aes.h has unknown pragmas, disable warning -Wunknown-pragmas
|
# openzwave/aes/aes.h has unknown pragmas, disable warning -Wunknown-pragmas
|
||||||
|
@ -2,4 +2,4 @@ set (libname "pulsensor")
|
|||||||
set (libdescription "3-wire Pulse Sensor")
|
set (libdescription "3-wire Pulse Sensor")
|
||||||
set (module_src ${libname}.cxx)
|
set (module_src ${libname}.cxx)
|
||||||
set (module_hpp ${libname}.hpp)
|
set (module_hpp ${libname}.hpp)
|
||||||
upm_module_init(mraa)
|
upm_module_init(mraa ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
@ -2,4 +2,4 @@ set (libname "sx1276")
|
|||||||
set (libdescription "SZ1276 LoRa/FSK/OOK Radio")
|
set (libdescription "SZ1276 LoRa/FSK/OOK Radio")
|
||||||
set (module_src ${libname}.cxx)
|
set (module_src ${libname}.cxx)
|
||||||
set (module_hpp ${libname}.hpp)
|
set (module_hpp ${libname}.hpp)
|
||||||
upm_module_init(mraa)
|
upm_module_init(mraa ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <pthread.h>
|
|
||||||
|
|
||||||
#include "t3311.hpp"
|
#include "t3311.hpp"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user