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

Commit87e9465

Browse files
committed
More renames
1 parenta923bc9 commit87e9465

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎Include/internal/pycore_object.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ _Py_TryIncRefShared(PyObject *op)
430430

431431
/* Tries to incref the object op and ensures that *src still points to it. */
432432
staticinlineint
433-
_Py_TryAcquireObject(PyObject**src,PyObject*op)
433+
_Py_TryIncref(PyObject**src,PyObject*op)
434434
{
435435
if (_Py_TryIncrefFast(op)) {
436436
return1;
@@ -456,7 +456,7 @@ _Py_XGetRef(PyObject **ptr)
456456
if (value==NULL) {
457457
returnvalue;
458458
}
459-
if (_Py_TryAcquireObject(ptr,value)) {
459+
if (_Py_TryIncref(ptr,value)) {
460460
returnvalue;
461461
}
462462
}
@@ -465,13 +465,13 @@ _Py_XGetRef(PyObject **ptr)
465465
/* Attempts to loads and increfs an object from ptr. Returns NULL
466466
on failure, which may be due to a NULL value or a concurrent update. */
467467
staticinlinePyObject*
468-
_Py_TryXFetchRef(PyObject**ptr)
468+
_Py_TryXGetRef(PyObject**ptr)
469469
{
470470
PyObject*value=_Py_atomic_load_ptr(ptr);
471471
if (value==NULL) {
472472
returnvalue;
473473
}
474-
if (_Py_TryAcquireObject(ptr,value)) {
474+
if (_Py_TryIncref(ptr,value)) {
475475
returnvalue;
476476
}
477477
returnNULL;
@@ -499,7 +499,6 @@ _Py_NewRefWithLock(PyObject *op)
499499
returnop;
500500
}
501501
}
502-
returnop;
503502
}
504503

505504
staticinlinePyObject*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp