File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ FILE *sysgetfile PROTO((char *, FILE *));
36
36
void initsys PROTO ((void ));
37
37
38
38
extern DL_IMPORT object * sys_trace , * sys_profile ;
39
+ extern DL_IMPORT int sys_checkinterval ;
39
40
40
41
#ifdef __cplusplus
41
42
}
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ Data members:
45
45
#include "osdefs.h"
46
46
47
47
object * sys_trace , * sys_profile ;
48
+ int sys_checkinterval ;
48
49
49
50
static object * sysdict ;
50
51
@@ -124,6 +125,17 @@ sys_setprofile(self, args)
124
125
return None ;
125
126
}
126
127
128
+ static object *
129
+ sys_setcheckinterval (self , args )
130
+ object * self ;
131
+ object * args ;
132
+ {
133
+ if (!newgetargs (args , "i" , & sys_checkinterval ))
134
+ return NULL ;
135
+ INCREF (None );
136
+ return None ;
137
+ }
138
+
127
139
#ifdef USE_MALLOPT
128
140
/* Link with -lmalloc (or -lmpc) on an SGI */
129
141
#include <malloc.h>
@@ -149,6 +161,7 @@ static struct methodlist sys_methods[] = {
149
161
#endif
150
162
{"setprofile" , sys_setprofile },
151
163
{"settrace" , sys_settrace },
164
+ {"setcheckinterval" , sys_setcheckinterval },
152
165
{NULL , NULL } /* sentinel */
153
166
};
154
167
You can’t perform that action at this time.
0 commit comments