Z3_SINGLE_THREADED CMake option meaning #7685
-
Beta Was this translation helpful? Give feedback.
Answered by
NikolajBjorner
Jun 16, 2025
Replies: 1 comment
-
If you build z3 with single-threaded and then use the API to spawn multiple threads with separate contexts then code that was previously thread safe isn't any longer. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
etienne-mlsc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you build z3 with single-threaded and then use the API to spawn multiple threads with separate contexts then code that was previously thread safe isn't any longer.
If you are just using z3.exe, then multi-threaded features are disabled internally. It is safe.
The option is used when applications only use a single thread for z3 and it then avoids overhead that is required for multi-threading.