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

[ENH] SimpleTreeLearner: Release GIL & thread safety #2398

Merged
merged 1 commit into from
Jun 16, 2017

Conversation

ales-erjavec
Copy link
Contributor

Issue

SimpleTreeLearner does not release the GIL (as it is not thread safe)

Description of changes
  • Remove use of global compar_attr variable. Use qsort_(r|s) with explicit context passing.
  • Use GIL releasing ctypes call.
Includes
  • Code changes
  • Tests
  • Documentation

Remove use of global `compar_attr` variable. Use `qsort_(r|s)` with
explicit context passing.

Use GIL releasing ctypes call.
@codecov-io
Copy link

Codecov Report

Merging #2398 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2398      +/-   ##
==========================================
- Coverage   73.87%   73.87%   -0.01%     
==========================================
  Files         322      322              
  Lines       55835    55835              
==========================================
- Hits        41248    41246       -2     
- Misses      14587    14589       +2

@janezd janezd merged commit 625ff36 into biolab:master Jun 16, 2017
@ales-erjavec ales-erjavec deleted the simple-tree-thread-safe branch June 19, 2017 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants