Skip to content

Commit 0d69c8c

Browse files
committed
Add TODO about ensuring a lock is held
1 parent f02ff5a commit 0d69c8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Modules/_zstd/decompressor.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,9 @@ void
384384
decompressor_reset_session(ZstdDecompressor *self,
385385
decompress_type type)
386386
{
387+
// TODO(emmatyping): use _Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED here
388+
// and ensure lock is always held
389+
387390
/* Reset variables */
388391
self->in_begin = 0;
389392
self->in_end = 0;

0 commit comments

Comments
 (0)