mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
add comment regarding usage model for flush_objects() to relate with pr #6992
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3baaba5edd
commit
f1a39b8884
1 changed files with 5 additions and 0 deletions
|
@ -78,6 +78,11 @@ namespace api {
|
|||
m().dec_ref(a);
|
||||
}
|
||||
|
||||
// flush_objects can only be called in the main thread.
|
||||
// This ensures that the calls to m().dec_ref() and dealloc(o)
|
||||
// only happens in the main thread.
|
||||
// Calls to dec_ref are allowed in other threads when m_concurrent_dec_ref is
|
||||
// set to true.
|
||||
void context::flush_objects() {
|
||||
#ifndef SINGLE_THREAD
|
||||
if (!m_concurrent_dec_ref)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue