Fix build error when using NANO_TIMED_LOCKS_IGNORE_BLOCKED (#2927)

This commit is contained in:
Guilherme Lawless 2020-09-14 13:28:49 +01:00 committed by GitHub
commit aa5c5fd5ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,9 @@ void output_if_blocked_long_enough (nano::timer<std::chrono::milliseconds> & tim
// Explicit instantations
template void output (const char * str, std::chrono::milliseconds time, std::mutex & mutex);
template void output_if_held_long_enough (nano::timer<std::chrono::milliseconds> & timer, std::mutex & mutex);
#ifndef NANO_TIMED_LOCKS_IGNORE_BLOCKED
template void output_if_blocked_long_enough (nano::timer<std::chrono::milliseconds> & timer, std::mutex & mutex);
#endif
lock_guard<std::mutex>::lock_guard (std::mutex & mutex) :
mut (mutex)