Skip to content

Commit

Permalink
allow multi-threading in python
Browse files Browse the repository at this point in the history
  • Loading branch information
bodonoghue committed Jan 1, 2016
1 parent ed67f46 commit a527379
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/scsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,10 @@ static PyObject *csolve(PyObject* self, PyObject *args, PyObject *kwargs) {
d->stgs->warm_start |= getWarmStart("s", &(sol.s), d->m, warm);
}

/* TODO threading not enabled, PySys_WriteStdout and static timers not thread safe (WITH_THREAD) */
/* Py_BEGIN_ALLOW_THREADS */
Py_BEGIN_ALLOW_THREADS
/* Solve! */
scs(d, k, &sol, &info);
/* Py_END_ALLOW_THREADS */
Py_END_ALLOW_THREADS

/* create output (all data is *deep copied*) */
/* x */
Expand Down

0 comments on commit a527379

Please sign in to comment.