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

10000 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
Next Next commit
move up the AC generated header before usage
  • Loading branch information
Mayuresh16 committed Nov 21, 2023
commit e02a6bc8e080218a9b04d2a6ae67eaff96e6e991
8 changes: 4 additions & 4 deletions Modules/_io/bufferedio.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

#include "_iomodule.h"

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

/*[clinic input]
module _io
class _io._BufferedIOBase "PyObject *" "clinic_state()->PyBufferedIOBase_Type"
Expand Down Expand Up @@ -517,10 +521,6 @@ buffered_closed(buffered *self)
return closed;
}

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

static PyObject *
buffered_closed_get_impl(buffered *self, void *context)
{
Expand Down
0