Skip to content

Commit 822a0d1

Browse files
committed
Critical sections
1 parent 7fe6086 commit 822a0d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Objects/dictobject.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3293,6 +3293,7 @@ dict_richcompare(PyObject *v, PyObject *w, int op)
32933293
/*[clinic input]
32943294
32953295
@coexist
3296+
@critical_section
32963297
dict.__contains__
32973298
32983299
key: object
@@ -3324,6 +3325,7 @@ dict___contains__(PyDictObject *self, PyObject *key)
33243325
}
33253326

33263327
/*[clinic input]
3328+
@critical_section
33273329
dict.get
33283330
33293331
key: object
@@ -3559,6 +3561,7 @@ dict_pop_impl(PyDictObject *self, PyObject *key, PyObject *default_value)
35593561
}
35603562

35613563
/*[clinic input]
3564+
@critical_section
35623565
dict.popitem
35633566
35643567
Remove and return a (key, value) pair as a 2-tuple.

0 commit comments

Comments
 (0)