File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -358,17 +358,17 @@ Module :py:mod:`stackless`
358
358
it will be awakened by other threads using channels which its
359
359
blocked tasklets are waiting on.
360
360
361
- ``Py_WATCHDOG_SOFT ``
361
+ ``PY_WATCHDOG_SOFT ``
362
362
Instead of interrupting a tasklet, we wait until the
363
363
next tasklet scheduling moment to return. Always returns
364
364
*Py_None*, as everything is in order.
365
365
366
- ``Py_WATCHDOG_IGNORE_NESTING ``
366
+ ``PY_WATCHDOG_IGNORE_NESTING ``
367
367
Allows interrupts at all levels, effectively acting as
368
368
though the *ignore_nesting* attribute were set on all
369
369
tasklets.
370
370
371
- ``Py_WATCHDOG_TIMEOUT ``
371
+ ``PY_WATCHDOG_TIMEOUT ``
372
372
Interprets *timeout* as a fixed run time, rather than a
373
373
per-tasklet run limit. The function will then attempt to
374
374
interrupt execution once this many total opcodes have
Original file line number Diff line number Diff line change @@ -341,18 +341,21 @@ PyAPI_FUNC(unsigned long) PyStackless_GetCurrentId(void);
341
341
* When set enables the old thread-blocking behaviour when
342
342
* we run out of tasklets on this thread and there are other
343
343
* Python(r) threads running.
344
- * Py_WATCHDOG_SOFT :
344
+ * PY_WATCHDOG_SOFT :
345
345
* Instead of interrupting a tasklet, we wait until the
346
346
* next tasklet scheduling moment to return. Always returns
347
347
* Py_None, as everything is in order.
348
- * Py_WATCHDOG_IGNORE_NESTING :
348
+ * PY_WATCHDOG_IGNORE_NESTING :
349
349
* allows interrupts at all levels, effectively acting as
350
350
* though the "ignore_nesting" attribute were set on all
351
351
* tasklets.
352
- * Py_WATCHDOG_TIMEOUT :
352
+ * PY_WATCHDOG_TIMEOUT :
353
353
* interprets 'timeout' as a total timeout, rather than a
354
354
* timeslice length. The function will then attempt to
355
- * interrupt execution
355
+ * interrupt execution
356
+ *
357
+ * Note: the spelling is inconsistent (Py_ versus PY_) since ever.
358
+ * We won't change it for compatibility reasons.
356
359
*/
357
360
#define Py_WATCHDOG_THREADBLOCK 1
358
361
#define PY_WATCHDOG_SOFT 2
Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ What's New in Stackless 3.X.X?
9
9
10
10
*Release date: 20XX-XX-XX*
11
11
12
+ - https://github.com/stackless-dev/stackless/issues/219
13
+ C-API documentation update: update the names of watchdog flags to match the
14
+ implementation.
15
+
12
16
- https://github.com/stackless-dev/stackless/issues/221
13
17
Fix a bug that could cause an assertion failure and a reference leak during
14
18
the termination of a main-tasklet, if an application embeds Stackless Python.
You can’t perform that action at this time.
0 commit comments