On Apr 17, 2009, at 3:12 PM, Lisandro Dalcin wrote: > I'm working on providing support in mpi4py for complex types, and then > I did more or les this: > > cdef class Datatype: # cdef class > MPI_Datatype ob_mpi > > cdef Datatype COMPLEX = Datatype() # cdef global > > cdef void setup_complex_types() nogil: # nogil function > cdef MPI_Datatype newtype > create_complex_type(&newtype) # implemented elsewhere > COMPLEX.ob_mpi = newtype # Look HERE ! > > As you see, I'm touching a C field of the object structure inside a > "nogil" function. > > I'm very hapy it worked!! . AFAIK, there are no GIL issues in this > code. Anyway, I would like to know your opinion on this.
Yes, there's no reason at all that this should need the GIL. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
