Closed thisiscam closed 8 years ago
Nvm, I figured out that I need to "lacify" my threads created in C#, by which I've created a C# Lace.ParallelFor for ease of use: https://github.com/thisiscam/SylvanSharp/blob/master/SylvanSharp/SylvanSharp/Lace.cs#L57
Please consider including a commit hash when you refer to lines of code.
I'm trying to use sylvan from multiple threads. If my understanding is correct, it should also be fine to call sylvan_and from multiple threads?
Currently I'm wrapping "and" with the following code, with a LACE_ME directive: https://github.com/thisiscam/SylvanSharp/blob/master/wrapper/wrapper.c#L42
However, it appears that if I invoke this method from multiple threads, I got a segfault. I haven't looked into gdb-ing it yet, but any insight would be helpful(as I might be totally wrong with something)! Thanks!