Skip to content

Commit

Permalink
Do not use PyEval_InitThreads
Browse files Browse the repository at this point in the history
because it doesn't do anything.
  • Loading branch information
tfarago committed Jul 18, 2022
1 parent f85464e commit 3435f4f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions ufo/ufo-base-scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,6 @@ ufo_base_scheduler_run (UfoBaseScheduler *scheduler,
if (scheduler->priv->trace)
enable_tracing (graph);

#ifdef WITH_PYTHON
Py_Initialize();
if (PY_MAJOR_VERSION == 2 || (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 7)) {
PyEval_InitThreads();
}
#endif

timer = g_timer_new ();
(*klass->run)(scheduler, graph, error);
scheduler->priv->time = g_timer_elapsed (timer, NULL);
Expand All @@ -165,14 +158,6 @@ ufo_base_scheduler_abort (UfoBaseScheduler *scheduler)

g_return_if_fail (klass != NULL && klass->run != NULL);


#ifdef WITH_PYTHON
Py_Initialize();
if (PY_MAJOR_VERSION == 2 || (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 7)) {
PyEval_InitThreads();
}
#endif

(*klass->abort)(scheduler);
}

Expand Down

0 comments on commit 3435f4f

Please sign in to comment.