mirror of
https://github.com/Z3Prover/z3
synced 2025-05-02 13:27:01 +00:00
set OCaml default behaivor to enable concurrent dec ref #6160
Add Z3_enable_concurrent_dec_ref to the API. It is enables behavior of dec_ref functions that are exposed over the API to work with concurrent GC. The API calls to dec_ref are queued and processed in the main thread where context operations take place (in a way that is assumed thread safe as context operations are only allowed to be serialized on one thread at a time).
This commit is contained in:
parent
6c5747a80e
commit
aefd336c18
4 changed files with 21 additions and 2 deletions
|
@ -59,6 +59,7 @@ let mk_context (settings:(string * string) list) =
|
|||
Z3native.del_config cfg;
|
||||
Z3native.set_ast_print_mode res (Z3enums.int_of_ast_print_mode PRINT_SMTLIB2_COMPLIANT);
|
||||
Z3native.set_internal_error_handler res;
|
||||
Z3native.enable_concurrent_dec_ref res;
|
||||
res
|
||||
|
||||
module Symbol =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue