Skip to content

Conversation

@abgeana
Copy link
Contributor

@abgeana abgeana commented Jul 1, 2025

This PR exposes to the C bindings the ThreadSafeContext.getLock() method and adds another for releasing the lock.

@nikic nikic requested a review from lhames July 1, 2025 20:37
@github-actions
Copy link

github-actions bot commented Jul 1, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@abgeana abgeana force-pushed the llvm-c-tsctx-lock branch from 9ab9762 to 409864f Compare July 1, 2025 20:43
Copy link
Contributor

@lhames lhames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @abgeana!

Thanks for submitting this!

What operations do you want to be able to do under the C API? The LLVMOrcThreadSafeModuleWithModuleDo is meant to provide safe access a thread-safe llvm::Module -- do you need access to the context independent of any Module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants