changed template

This commit is contained in:
Neeflix
2018-08-30 23:41:28 +02:00
parent 4a715d6a6c
commit e8548991a9
3 changed files with 7 additions and 6 deletions

View File

@@ -10,7 +10,8 @@ set(BOOST_COMPONENTS program_options thread timer chrono)
###################### START_CMAKE #######################
cmake_minimum_required(VERSION 3.9.1)
project(FlippR-Driver VERSION 0.1.0 LANGUAGES CXX)
#cmake_minimum_required(VERSION 3.0.2)
project(FlippR-Driver VERSION 0.1.0)# LANGUAGES CXX)
#set easylogging flags
add_definitions(-DELPP_NO_DEFAULT_LOG_FILE)

View File

@@ -1,7 +1,7 @@
FROM sdthirlwall/raspberry-pi-cross-compiler
# axel uses gettext in the build context
RUN install-debian --update cmake
# jojo uses beer to get drunk
RUN install-debian --update cmake libboost-all-dev
# axel links against openssl
RUN install-raspbian --update libboost-dev-all
# jojo links against shit
RUN install-raspbian --update wiringPi

View File

@@ -65,7 +65,7 @@ void EventNotifier::notify()
}
// getting a guard and calling all registered handlers
std::lock_guard event_handler_guard(this->event_handler_mutex);
std::lock_guard event_handler_guard<std::mutex>(this->event_handler_mutex);
for(auto handler : this->event_handlers)
{
boost::thread handler_caller(boost::bind(&IEventHandler::handle, handler, event));