Skip to content

Commit 9647f90

Browse files
committed
Address feedback about PyList_Reverse
1 parent 63f03e7 commit 9647f90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Doc/data/threadsafety.dat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ PyList_SET_ITEM:compatible:
5656
# Bulk operations - hold per-object lock for duration
5757
PyList_GetSlice:atomic:
5858
PyList_AsTuple:atomic:
59-
PyList_Reverse:atomic:
6059
PyList_Clear:atomic:
6160

61+
# Reverse - protected by per-object critical section; swaps
62+
# elements so lock-free readers may observe intermediate states
63+
PyList_Reverse:shared:
64+
6265
# Slice assignment - lock target list; also lock source when it
6366
# is a list
6467
PyList_SetSlice:shared:

0 commit comments

Comments
 (0)