aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/utility.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-07 08:27:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-07 08:27:11 +0200
commit7e3092b83516e720ef367e8172421266078ee7e6 (patch)
treed148680100da8dc9ae9a634bce9a82364825b20e /libbuild2/utility.hxx
parent20ce40e34faf6b08f8c3bb9a149a3975fd4403cc (diff)
Improve deadlock diagnostics (suppress stack trace, reword)
Diffstat (limited to 'libbuild2/utility.hxx')
-rw-r--r--libbuild2/utility.hxx8
1 files changed, 7 insertions, 1 deletions
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<bool> mtime_check = nullopt,
optional<path> config_sub = nullopt,
optional<path> 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;