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
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion