Threading question for Travis

April 26, 2008
10:47 a.m.
Travis, Is this correct? NPY_LOOP_BEGIN_THREADS; switch(loop->meth) { case ONE_UFUNCLOOP: /* * Everything is contiguous, notswapped, aligned, * and of the right type. -- Fastest. * Or if not contiguous, then a single-stride * increment moves through the entire array. */ /*fprintf(stderr, "ONE...%d\n", loop->size);*/ loop->function((char **)loop->bufptr, &(loop->size), loop->steps, loop->funcdata); UFUNC_CHECK_ERROR(loop); break; Note that UFUNC_CHECK_ERROR calls PyErr_Occurred. That doesn't seem thread safe to me. Or maybe there is something special about that function I'm missing. Chuck

6248
Age (days ago)
6249
Last active (days ago)
3 comments
2 participants
participants (2)
-
Charles R Harris
-
Travis E. Oliphant