From aa5c5fd5ce1fd4423a50a6293fe07b5278fb8e58 Mon Sep 17 00:00:00 2001 From: Guilherme Lawless Date: Mon, 14 Sep 2020 13:28:49 +0100 Subject: [PATCH] Fix build error when using NANO_TIMED_LOCKS_IGNORE_BLOCKED (#2927) --- nano/lib/locks.cpp | 2 ++ 1 file changed, 2 insertions(+) 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)