Skip to content

Commit c2619a3

Browse files
committed
expose GIL functions
1 parent ac92f56 commit c2619a3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Sources/LinkPython/include/PythonSupport.h

+9-1
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,18 @@
2626

2727
NS_ASSUME_NONNULL_BEGIN
2828

29-
int PythonInitialize(int argc, const char **argv, const char *);
29+
int PythonInitialize(int, const char **, const char *);
3030

3131
void PythonFinalize();
3232

3333
void PythonRunSimpleString(const char *);
3434

35+
void *PyGILState_Ensure(void);
36+
37+
void PyGILState_Release(void *);
38+
39+
void *PyEval_SaveThread();
40+
41+
void PyEval_RestoreThread(void *);
42+
3543
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)