Skip to content

Commit 9fc435e

Browse files
committed
PyThread_allocate_lock stub
1 parent 983ea1c commit 9fc435e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

graalpython/com.oracle.graal.python.cext/include/Python.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
#include "frameobject.h"
115115
#include "traceback.h"
116116
#include "classobject.h"
117+
#include "pythread.h"
117118

118119
#define PY_TRUFFLE_CEXT ((void*)polyglot_import("python_cext"))
119120
#define PY_BUILTIN ((void*)polyglot_import("python_builtins"))

graalpython/com.oracle.graal.python.cext/src/ceval.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,7 @@ PyThreadState* PyEval_SaveThread() {
5454

5555
void PyEval_RestoreThread(PyThreadState *ptr) {
5656
}
57+
58+
void* PyThread_allocate_lock() {
59+
return NULL;
60+
}

0 commit comments

Comments
 (0)