mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Bit the bullet and added a private GUSISIOUX for Python. This makes the delayconsole and keepopen code neater. Also tells Sioux to behave better with events, and handles cmd-. during print better. The pythonpreferences have also changed due to this.
This commit is contained in:
parent
6a9aec47b7
commit
8a38714ba0
7 changed files with 274 additions and 27 deletions
|
|
@ -539,6 +539,25 @@ PyErr_CheckSignals()
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/*
|
||||
** This routine is called if we know that an external library yielded
|
||||
** to background tasks, so we shouldn't count that time in our computation
|
||||
** of how much CPU we used.
|
||||
** This happens with SIOUX, and the routine is called from our modified
|
||||
** GUSISIOUX.
|
||||
*/
|
||||
void
|
||||
PyMac_LibraryDidYield(int howlong)
|
||||
{
|
||||
unsigned long maxnextcheck = (unsigned long)LMGetTicks() + schedparams.check_interval;
|
||||
|
||||
schedparams.next_check = schedparams.next_check + howlong;
|
||||
if (schedparams.next_check > maxnextcheck )
|
||||
schedparams.next_check = maxnextcheck;
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
PyOS_InterruptOccurred()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue