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 @@ -327,17 +327,17 @@ stackless module
327
327
it will be awakened by other threads using channels which its
328
328
blocked tasklets are waiting on.
329
329
330
- ``Py_WATCHDOG_SOFT ``
330
+ ``PY_WATCHDOG_SOFT ``
331
331
Instead of interrupting a tasklet, we wait until the
332
332
next tasklet scheduling moment to return. Always returns
333
333
*Py_None*, as everything is in order.
334
334
335
- ``Py_WATCHDOG_IGNORE_NESTING ``
335
+ ``PY_WATCHDOG_IGNORE_NESTING ``
336
336
Allows interrupts at all levels, effectively acting as
337
337
though the *ignore_nesting* attribute were set on all
338
338
tasklets.
339
339
340
- ``Py_WATCHDOG_TIMEOUT ``
340
+ ``PY_WATCHDOG_TIMEOUT ``
341
341
Interprets *timeout* as a fixed run time, rather than a
342
342
per-tasklet run limit. The function will then attempt to
343
343
interrupt execution once this many total opcodes have
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ What's New in Stackless 2.7.XX?
10
10
11
11
*Release date: XXXX-XX-XX*
12
12
13
+ - https://github.com/stackless-dev/stackless/issues/217
14
+ C-API documentation update: update the names of watchdog flags to match the
15
+ implementation.
16
+
13
17
- https://github.com/stackless-dev/stackless/issues/222
14
18
Fix a bug that could cause an assertion failure and a reference leak during
15
19
the termination of a main-tasklet, if an application embeds Stackless Python.
Original file line number Diff line number Diff line change @@ -334,18 +334,21 @@ PyAPI_FUNC(long) PyStackless_GetCurrentId(void);
334
334
* When set enables the old thread-blocking behaviour when
335
335
* we run out of tasklets on this thread and there are other
336
336
* Python(r) threads running.
337
- * Py_WATCHDOG_SOFT :
337
+ * PY_WATCHDOG_SOFT :
338
338
* Instead of interrupting a tasklet, we wait until the
339
339
* next tasklet scheduling moment to return. Always returns
340
340
* Py_None, as everything is in order.
341
- * Py_WATCHDOG_IGNORE_NESTING :
341
+ * PY_WATCHDOG_IGNORE_NESTING :
342
342
* allows interrupts at all levels, effectively acting as
343
343
* though the "ignore_nesting" attribute were set on all
344
344
* tasklets.
345
- * Py_WATCHDOG_TIMEOUT :
345
+ * PY_WATCHDOG_TIMEOUT :
346
346
* interprets 'timeout' as a total timeout, rather than a
347
347
* timeslice length. The function will then attempt to
348
- * interrupt execution
348
+ * interrupt execution
349
+ *
350
+ * Note: the spelling is inconsistent (Py_ versus PY_) since ever.
351
+ * We won't change it for compatibility reasons.
349
352
*/
350
353
#define Py_WATCHDOG_THREADBLOCK 1
351
354
#define PY_WATCHDOG_SOFT 2
You can’t perform that action at this time.
0 commit comments