Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2d18aec

Browse files
authored
Add critical section API (#106)
1 parent39e2663 commit2d18aec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎pythoncapi_compat.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,6 +1338,13 @@ PyDict_SetDefaultRef(PyObject *d, PyObject *key, PyObject *default_value,
13381338
}
13391339
#endif
13401340

1341+
#if PY_VERSION_HEX < 0x030D00B3
1342+
#definePy_BEGIN_CRITICAL_SECTION(op) {
1343+
#definePy_END_CRITICAL_SECTION() }
1344+
#definePy_BEGIN_CRITICAL_SECTION2(a, b) {
1345+
#definePy_END_CRITICAL_SECTION2() }
1346+
#endif
1347+
13411348
#if PY_VERSION_HEX < 0x030E0000 && PY_VERSION_HEX >= 0x03060000 && !defined(PYPY_VERSION)
13421349
typedefstructPyUnicodeWriter PyUnicodeWriter;
13431350

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp