Skip to content

Commit 1fb2714

Browse files
fix thread-safety
We now globally lock all the interpreters when we iterate over all the interpreters' bump allocators to resolve which interpreter a `QualType` belongs to. Similarly, we also lock all the interpreters to resolve the interpreter from a `Decl`. I have also adopted most of the tests to run in parallel, hopefully detecting failures early.
1 parent 5905960 commit 1fb2714

File tree

11 files changed

+1248
-684
lines changed

11 files changed

+1248
-684
lines changed

include/CppInterOp/CppInterOp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ CPPINTEROP_API bool ActivateInterpreter(TInterp_t I);
733733
/// Clang-REPL, etcetera). In practice, the selected interpreter should not
734734
/// matter, since the library will function in the same way.
735735
///\returns the current interpreter instance, if any.
736-
CPPINTEROP_API TInterp_t GetInterpreter();
736+
CPPINTEROP_API TInterp_t GetInterpreter(TInterp_t I = nullptr);
737737

738738
/// Sets the Interpreter instance with an external interpreter, meant to
739739
/// be called by an external library that manages it's own interpreter.

0 commit comments

Comments
 (0)