Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for releasing the runtime lock in generated stubs #429

Merged
merged 3 commits into from
Aug 16, 2016
Merged

Add support for releasing the runtime lock in generated stubs #429

merged 3 commits into from
Aug 16, 2016

Conversation

yallop
Copy link
Owner

@yallop yallop commented Aug 16, 2016

Fixes #241.

This adds an extra value, Cstubs.unlocked to the interface:

val unlocked : concurrency_policy
(** Generate code that releases the runtime lock during C calls. *)

Passing ~concurrency_policy:Cstubs.unlocked to the write_c and write_ml functions results in generated code that releases the runtime lock when calling C functions.

@yallop yallop merged commit e82803d into yallop:master Aug 16, 2016
@yallop yallop deleted the cstubs-runtime-lock branch August 16, 2016 15:07
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.

1 participant