-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Give up the GIL during Starlark execution (#28)
* Give up the GIL during Starlark execution I had some weird ideas about the GIL that I cleared up today. This removes an unneccesary GIL lock in one spot, and changes `exec` and `eval` to give up the GIL while they're busy executing Starlark code. A mutex is added per Starlark thread to prevent multiple Python threads from trying to access the same Starlark thread at once. Also removed a couple unneccesary Cgo wrappers where I could use the Python API directly instead. * Remove another unused wrapper
- Loading branch information
Showing
3 changed files
with
52 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters