Commits

rmtew committed 43a7533

Remove unused variables and code, as seen when compiling on Linux. Related to interthread scheduling.

Comments (0)

Files changed (1)

Stackless/module/scheduling.c

     return slp_curexc_to_bomb();
 }
 
-static int
-is_thread_alive(long thread_id)
-{
-    PyThreadState *ts = PyThreadState_Get();
-    PyInterpreterState *interp = ts->interp;
-
-    for (ts = interp->tstate_head; ts != NULL; ts = ts->next)
-        if (ts->thread_id == thread_id)
-            return 1;
-    return 0;
-}
-
 #ifdef WITH_THREAD
 
 /* make sure that locks live longer than their threads */
                                        int stackless,
                                        int *did_switch)
 {
-    PyThreadState *ts = PyThreadState_GET();
     PyThreadState *nts = next->cstate->tstate;
     PyObject *retval;
-    long thread_id = nts->thread_id;
 
     /* get myself ready, since the previous task is going to continue on the
      * curren thread
     PyObject *retval;
     int (*transfer)(PyCStackObject **, PyCStackObject *, PyTaskletObject *);
     int no_soft_irq;
-    
+
     if (did_switch)
         *did_switch = 0; /* only set this if an actual switch occurs */
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.