From 7e3092b83516e720ef367e8172421266078ee7e6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 7 Aug 2019 08:27:11 +0200 Subject: Improve deadlock diagnostics (suppress stack trace, reword) --- libbuild2/utility.hxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libbuild2/utility.hxx') diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx index 9598208..c251b64 100644 --- a/libbuild2/utility.hxx +++ b/libbuild2/utility.hxx @@ -119,13 +119,19 @@ namespace build2 // Default values are for unit tests. // LIBBUILD2_SYMEXPORT void - init (const char* argv0, + init (void (*terminate) (bool), + const char* argv0, bool keep_going = false, bool dry_run = false, optional mtime_check = nullopt, optional config_sub = nullopt, optional config_guess = nullopt); + // Terminate function. If trace is false, then printing of the stack trace, + // if any, should be omitted. + // + LIBBUILD2_SYMEXPORT extern void (*terminate) (bool trace); + // Build system driver process path (argv0.initial is argv[0]). // LIBBUILD2_SYMEXPORT extern process_path argv0; -- cgit v1.1