diff --git a/nano/lib/locks.cpp b/nano/lib/locks.cpp index 46321f91..a62279a5 100644 --- a/nano/lib/locks.cpp +++ b/nano/lib/locks.cpp @@ -46,7 +46,9 @@ void output_if_blocked_long_enough (nano::timer & 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 & timer, std::mutex & mutex); +#ifndef NANO_TIMED_LOCKS_IGNORE_BLOCKED template void output_if_blocked_long_enough (nano::timer & timer, std::mutex & mutex); +#endif lock_guard::lock_guard (std::mutex & mutex) : mut (mutex)