-
Notifications
You must be signed in to change notification settings - Fork 98
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
Multithreading in Pyswip #120
Comments
That's the expected behavior from libswipl.
You need to create a new engine for each thread.
…On Tue, Mar 30, 2021 at 6:46 AM SHUBHAM SHARMA ***@***.***> wrote:
On accessing pyswip in a thread it gives segmentation fault in
Linux(Ubuntu) and memory violation in Windows.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#120>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3QJLDPTX44POTUK7KXUQ3TGHI2RANCNFSM42CCYLFQ>
.
|
@stuz5000 |
It's only a concept in the C API - pyswip has only wrapped a subset of
those functions in swipl.
You’d need to identify those APIs and wrap the with ctypes annotations (as
pyswip does).
You could copy the method pyswip does for the new engine functions (but
following the code to where it calls PL_blahblah( ... ) and copy the
pattern) and use it in your local code, or someone could submit a PR.
…On Tue, Mar 30, 2021 at 6:51 AM Ajitem Joshi ***@***.***> wrote:
@stuz5000 <https://github.com/stuz5000>
By new engine, do you mean the new object of the Prolog class?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#120 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3QJLB7G3QLEYQBFGOC34DTGHJOZANCNFSM42CCYLFQ>
.
|
In the open Issue#3, I found the solution. it worked for me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On accessing pyswip in a thread it gives segmentation fault in Linux(Ubuntu) and memory violation in Windows.
if there is some way to achieve multithreading in pyswip please help
The text was updated successfully, but these errors were encountered: