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

calling julia from C #11153

Closed
iceblue25 opened this issue May 6, 2015 · 4 comments
Closed

calling julia from C #11153

iceblue25 opened this issue May 6, 2015 · 4 comments
Labels
embedding Embedding Julia using the C API multithreading Base.Threads and related functionality

Comments

@iceblue25
Copy link

Hi, I have a question about calling julia from C.

I want to call julia from a multithreaded C program.

jl_init seems to be using some global variables which is a big problem for my design .Any alternatives where I can use a local julia object for each C thread?

Is there a special reason for choosing to keep the julia variables global in C?

@tkelman tkelman added embedding Embedding Julia using the C API multithreading Base.Threads and related functionality labels May 6, 2015
@tkelman
Copy link
Contributor

tkelman commented May 6, 2015

This might be a more appropriate question for julia-users. I don't think the runtime is thread-safe yet, see #10421. The threading branch might be in a better state for that? Not sure.

@stevengj
Copy link
Member

stevengj commented May 6, 2015

No, it's not thread-safe yet. Closing as a dup of 10421.

@stevengj stevengj closed this as completed May 6, 2015
@iceblue25
Copy link
Author

@stevengj I am not sure if this is a dup of 10421 since I tracked some global variables my programs call and dont seem to be the same as the ones listed in 10421.

@stevengj
Copy link
Member

stevengj commented May 6, 2015

If there are globals missing from 10421, they should probably be added there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
embedding Embedding Julia using the C API multithreading Base.Threads and related functionality
Projects
None yet
Development

No branches or pull requests

3 participants