mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 09:55:19 +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
|
@ -78,6 +78,11 @@ namespace api {
|
||||||
m().dec_ref(a);
|
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() {
|
void context::flush_objects() {
|
||||||
#ifndef SINGLE_THREAD
|
#ifndef SINGLE_THREAD
|
||||||
if (!m_concurrent_dec_ref)
|
if (!m_concurrent_dec_ref)
|
||||||
|
|
Loading…
Reference in a new issue