summaryrefslogtreecommitdiffstats
path: root/Modules/sgimodule.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1992-08-13 14:13:11 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1992-08-13 14:13:11 (GMT)
commit743db36cd208c6f212a6b534e6bb8ee9256505ad (patch)
tree4fd1cb1b4cfd05d3f6962df90b563cd71641a680 /Modules/sgimodule.c
parent1738388c59c0fb727f73024e469aae59dda43ae7 (diff)
downloadcpython-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.c3
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;
}