changed template
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user