8000 gh-111965: Use critical sections to make io.BufferedIOBase and its related classes thread safe by Mayuresh16 · Pull Request #112298 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-111965: Use critical sections to make io.BufferedIOBase and its related classes thread safe #112298

8000 New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
sync branch
  • Loading branch information
Mayuresh16 committed Nov 21, 2023
commit 6f7d9c7fcf08d693dd2db5ff55bfde48fec6cb0b
8 changes: 4 additions & 4 deletions Modules/_io/bufferedio.c
Original file line number Diff line number Diff line change
PyObject *weakreflist;
} buffered;

#define clinic_state() (find_io_state_by_def(Py_TYPE(self)))
#include "clinic/bufferedio.c.h"
#undef clinic_state

/*
Implementation notes:

Expand Down Expand Up @@ -2481,6 +2477,10 @@ _io_BufferedRandom___init___impl(buffered *self, PyObject *raw,
return 0;
}

#define clinic_state() (find_io_state_by_def(Py_TYPE(self)))
#include "clinic/bufferedio.c.h"
#undef clinic_state

static PyMethodDef bufferediobase_methods[] = {
_IO__BUFFEREDIOBASE_DETACH_METHODDEF
_IO__BUFFEREDIOBASE_READ_METHODDEF
Expand Down
0