diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-07 08:27:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-07 08:27:11 +0200 |
commit | 7e3092b83516e720ef367e8172421266078ee7e6 (patch) | |
tree | d148680100da8dc9ae9a634bce9a82364825b20e /libbuild2/utility.hxx | |
parent | 20ce40e34faf6b08f8c3bb9a149a3975fd4403cc (diff) |
Improve deadlock diagnostics (suppress stack trace, reword)
Diffstat (limited to 'libbuild2/utility.hxx')
-rw-r--r-- | libbuild2/utility.hxx | 8 |
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; |