Skip to content

Commit b302ec3

Browse files
lysnikolaoubdraco
authored andcommitted
Remove pair_list_global_version mutex
1 parent fe141b4 commit b302ec3

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

multidict/_multilib/pair_list.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,8 @@ typedef struct pair_list {
5353
* It is incremented each time that a dictionary is created and each
5454
* time that a dictionary is modified. */
5555
static uint64_t pair_list_global_version = 0;
56-
#ifdef Py_GIL_DISABLED
57-
static PyMutex global_version_mutex;
58-
#endif
5956

60-
#ifdef Py_GIL_DISABLED
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
7057
#define NEXT_VERSION() (++pair_list_global_version)
71-
#endif
7258

7359

7460
static inline int

0 commit comments

Comments
 (0)