diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1992-08-13 14:13:11 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1992-08-13 14:13:11 (GMT) |
commit | 743db36cd208c6f212a6b534e6bb8ee9256505ad (patch) | |
tree | 4fd1cb1b4cfd05d3f6962df90b563cd71641a680 /Modules/sgimodule.c | |
parent | 1738388c59c0fb727f73024e469aae59dda43ae7 (diff) | |
download | cpython-743db36cd208c6f212a6b534e6bb8ee9256505ad.zip cpython-743db36cd208c6f212a6b534e6bb8ee9256505ad.tar.gz cpython-743db36cd208c6f212a6b534e6bb8ee9256505ad.tar.bz2 |
Modified to allow other threads to run in a multithreaded environment.
Diffstat (limited to 'Modules/sgimodule.c')
-rw-r--r-- | Modules/sgimodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/sgimodule.c b/Modules/sgimodule.c index fca4806..1951ad8 100644 --- a/Modules/sgimodule.c +++ b/Modules/sgimodule.c @@ -26,6 +26,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "allobjects.h" #include "modsupport.h" +#include "ceval.h" extern int sginap(long); @@ -37,7 +38,9 @@ sgi_nap(self, args) long ticks; if (!getargs(args, "l", &ticks)) return NULL; + BGN_SAVE sginap(ticks); + END_SAVE INCREF(None); return None; } |