(acquire-gil! interpreter)
Non-reentrant pathway to acquire gil. It must not be held by this thread.
Non-reentrant pathway to acquire gil. It must not be held by this thread.
(check-error-str)
Function assumes python stdout and stderr have been redirected
Function assumes python stdout and stderr have been redirected
(py-type-keyword typeobj)
Get a keyword that corresponds to the current type. Uses global type symbol table. Add the type to the symbol table if it does not exist already.
Get a keyword that corresponds to the current type. Uses global type symbol table. Add the type to the symbol table if it does not exist already.
(release-gil! interpreter)
non-reentrant pathway to release the gil. It must not be held by this thread.
non-reentrant pathway to release the gil. It must not be held by this thread.
(swap-interpreters! old-interp new-interp)
The gil must be held by this thread. This swaps out the current interpreter to make a new one current.
The gil must be held by this thread. This swaps out the current interpreter to make a new one current.
(with-gil-fn interpreter body-fn)
Run a function with the gil aquired. If you acquired the gil, release it when finished. Note we also lock the interpreter so that even if some code releases thegil, this interpreter cannot be entered.
Run a function with the gil aquired. If you acquired the gil, release it when finished. Note we also lock the interpreter so that even if some code releases thegil, this interpreter cannot be entered.
(with-interpreter interp & body)
See with-gil-fn
See with-gil-fn
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close