VHaravy
unread,May 21, 2013, 6:22:28 AM5/21/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to juli...@googlegroups.com
Is it safe to call Julia callback obtained via cfunction from a different thread? For example, I obtain a pointer to a Julia function via cfunction, then pass this pointer to some C functions (via ccall). This C function is then creates a thread from and calls Julia callback by pointer from this thread. There is no race here, all calls are made from exactly one thread that happens to be different from Julia's main thread. I keep getting some random crashes in similar scenario and wondering whether it is safe at all (MATLAB, for example, does not this).