We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1839c55 commit 899a644Copy full SHA for 899a644
multidict/_multilib/pair_list.h
@@ -53,22 +53,8 @@ typedef struct pair_list {
53
* It is incremented each time that a dictionary is created and each
54
* time that a dictionary is modified. */
55
static uint64_t pair_list_global_version = 0;
56
-#ifdef Py_GIL_DISABLED
57
-static PyMutex global_version_mutex;
58
-#endif
59
60
61
-static inline
62
-uint64_t NEXT_VERSION(void)
63
-{
64
- PyMutex_Lock(&global_version_mutex);
65
- ++pair_list_global_version;
66
- PyMutex_Unlock(&global_version_mutex);
67
- return pair_list_global_version;
68
-}
69
-#else
70
#define NEXT_VERSION() (++pair_list_global_version)
71
72
73
74
static inline int
0 commit comments