Commit c366fa15 authored by Matthieu Martin's avatar Matthieu Martin Committed by Facebook Github Bot

Delete PyGILStateGuard

Summary: This abstraction is currently only used in functions executed on Python threads, so it should be unecessary.

Reviewed By: andriigrynenko

Differential Revision: D7828136

fbshipit-source-id: a9ea8b23ffc26505c576106c49e850e1894648d5
parent 9bc01de8
......@@ -29,18 +29,7 @@
namespace folly {
namespace python {
class PyGILStateGuard {
public:
~PyGILStateGuard() {
PyGILState_Release(gstate);
}
private:
PyGILState_STATE gstate{PyGILState_Ensure()};
};
inline folly::Executor* getExecutor() {
PyGILStateGuard gstate;
import_folly__executor();
return get_executor();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment