Skip to content

Commit 00bb4c1

Browse files
committed
add critical sections
1 parent be39d9b commit 00bb4c1

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

Modules/_sqlite/clinic/cursor.c.h

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/_sqlite/cursor.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,25 +1298,27 @@ pysqlite_cursor_close_impl(pysqlite_Cursor *self)
12981298
}
12991299

13001300
/*[clinic input]
1301+
@critical_section
13011302
@getter
13021303
_sqlite3.Cursor.arraysize
13031304
[clinic start generated code]*/
13041305

13051306
static PyObject *
13061307
_sqlite3_Cursor_arraysize_get_impl(pysqlite_Cursor *self)
1307-
/*[clinic end generated code: output=e0919d97175e6c50 input=3278f8d3ecbd90e3]*/
1308+
/*[clinic end generated code: output=e0919d97175e6c50 input=e0e184c319955cbc]*/
13081309
{
13091310
return PyLong_FromUInt32(self->arraysize);
13101311
}
13111312

13121313
/*[clinic input]
1314+
@critical_section
13131315
@setter
13141316
_sqlite3.Cursor.arraysize
13151317
[clinic start generated code]*/
13161318

13171319
static int
13181320
_sqlite3_Cursor_arraysize_set_impl(pysqlite_Cursor *self, PyObject *value)
1319-
/*[clinic end generated code: output=af59a6b09f8cce6e input=ace48cb114e26060]*/
1321+
/*[clinic end generated code: output=af59a6b09f8cce6e input=9bb20fe894cda495]*/
13201322
{
13211323
return PyLong_AsUInt32(value, &self->arraysize);
13221324
}

0 commit comments

Comments
 (0)