Skip to content

Commit 0d14dc2

Browse files
committed
Remove one more critical section
1 parent daa5f43 commit 0d14dc2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Modules/_zstd/compressor.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ _get_CDict(ZstdDict *self, int compressionLevel)
157157
PyObject *capsule;
158158
ZSTD_CDict *cdict;
159159

160-
// TODO(emmatyping): refactor critical section code into a lock_held function
161-
Py_BEGIN_CRITICAL_SECTION(self);
162160

163161
/* int level object */
164162
level = PyLong_FromLong(compressionLevel);
@@ -216,7 +214,6 @@ _get_CDict(ZstdDict *self, int compressionLevel)
216214
cdict = NULL;
217215
success:
218216
Py_XDECREF(level);
219-
Py_END_CRITICAL_SECTION();
220217
return cdict;
221218
}
222219

0 commit comments

Comments
 (0)