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

Fix/python gil release on rdkit threadsafe sss only #639

Conversation

bp-kelley
Copy link
Contributor

The GIL is only released when RDK_BUILD_THREADSAFE_SSS is on.

Additional python treading tests were added (RDK_TEST_MULTITHREADED). These only check for sanity errors (i.e. re-entering the python interpreter when the GIL is released) not the underlying C++ code.

raise ValueError('Bad core structure')
ref_mol.GetSubstructMatch(core_mol)

def sub_match2():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really repetitive; couldn't you just have one test function that takes the method to call as an argument?

@bp-kelley
Copy link
Contributor Author

Should we turn on thread safety for testing?

@bp-kelley
Copy link
Contributor Author

You got xrange but missed the print statement ;)

@greglandrum
Copy link
Member

damn!

greglandrum added a commit that referenced this pull request Oct 15, 2015
…T_THREADSAFE_SSS-only

Fix/python gil release on rdkit threadsafe sss only
@greglandrum greglandrum merged commit cd8c43e into rdkit:master Oct 15, 2015
@bp-kelley bp-kelley deleted the fix/python-gil-release-on-RDKIT_THREADSAFE_SSS-only branch October 15, 2015 18:26
@greglandrum greglandrum modified the milestone: 2015_09_1 Oct 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants