diff options
author | Mattias Andrée <maandree@kth.se> | 2017-04-21 17:44:25 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-04-21 17:44:25 +0200 |
commit | 131a451ba0d5ec7bb515c82914b6b52ca66a2a66 (patch) | |
tree | ed6e094ea8fc8325b07612859b2d36b7978f1799 /src/libgamma_native_method.pyx | |
parent | typo (diff) | |
download | pylibgamma-131a451ba0d5ec7bb515c82914b6b52ca66a2a66.tar.gz pylibgamma-131a451ba0d5ec7bb515c82914b6b52ca66a2a66.tar.bz2 pylibgamma-131a451ba0d5ec7bb515c82914b6b52ca66a2a66.tar.xz |
Disable global interpretor lock while running external C code1.1.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/libgamma_native_method.pyx')
-rw-r--r-- | src/libgamma_native_method.pyx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/libgamma_native_method.pyx b/src/libgamma_native_method.pyx index 1883217..1550caf 100644 --- a/src/libgamma_native_method.pyx +++ b/src/libgamma_native_method.pyx @@ -117,7 +117,7 @@ cdef extern from "include-libgamma.h": # The gamma ramp for the blue channel. -cdef extern int libgamma_gamma_ramps8_initialise(libgamma_gamma_ramps8_t* this) +cdef extern int libgamma_gamma_ramps8_initialise(libgamma_gamma_ramps8_t* this) nogil ''' Initialise a gamma ramp in the proper way that allows all adjustment methods to read from and write to it without causing segmentation violation. @@ -129,7 +129,7 @@ sizes of the gamma ramps that should be allocated. @return Zero on success, -1 on allocation error, `errno` will be set accordingly. ''' -cdef extern void libgamma_gamma_ramps8_free(libgamma_gamma_ramps8_t* this) +cdef extern void libgamma_gamma_ramps8_free(libgamma_gamma_ramps8_t* this) nogil ''' Release resources that are held by a gamma ramp strcuture that has been allocated by `libgamma_gamma_ramps8_initialise` or otherwise @@ -140,7 +140,7 @@ to the structure. ''' -cdef extern int libgamma_gamma_ramps16_initialise(libgamma_gamma_ramps16_t* this) +cdef extern int libgamma_gamma_ramps16_initialise(libgamma_gamma_ramps16_t* this) nogil ''' Initialise a gamma ramp in the proper way that allows all adjustment methods to read from and write to it without causing segmentation violation. @@ -152,7 +152,7 @@ sizes of the gamma ramps that should be allocated. @return Zero on success, -1 on allocation error, `errno` will be set accordingly. ''' -cdef extern void libgamma_gamma_ramps16_free(libgamma_gamma_ramps16_t* this) +cdef extern void libgamma_gamma_ramps16_free(libgamma_gamma_ramps16_t* this) nogil ''' Release resources that are held by a gamma ramp strcuture that has been allocated by `libgamma_gamma_ramps16_initialise` or otherwise @@ -163,7 +163,7 @@ to the structure. ''' -cdef extern int libgamma_gamma_ramps32_initialise(libgamma_gamma_ramps32_t* this) +cdef extern int libgamma_gamma_ramps32_initialise(libgamma_gamma_ramps32_t* this) nogil ''' Initialise a gamma ramp in the proper way that allows all adjustment methods to read from and write to it without causing segmentation violation. @@ -175,7 +175,7 @@ sizes of the gamma ramps that should be allocated. @return Zero on success, -1 on allocation error, `errno` will be set accordingly. ''' -cdef extern void libgamma_gamma_ramps32_free(libgamma_gamma_ramps32_t* this) +cdef extern void libgamma_gamma_ramps32_free(libgamma_gamma_ramps32_t* this) nogil ''' Release resources that are held by a gamma ramp strcuture that has been allocated by `libgamma_gamma_ramps32_initialise` or otherwise @@ -186,7 +186,7 @@ to the structure. ''' -cdef extern int libgamma_gamma_ramps64_initialise(libgamma_gamma_ramps64_t* this) +cdef extern int libgamma_gamma_ramps64_initialise(libgamma_gamma_ramps64_t* this) nogil ''' Initialise a gamma ramp in the proper way that allows all adjustment methods to read from and write to it without causing segmentation violation. @@ -198,7 +198,7 @@ sizes of the gamma ramps that should be allocated. @return Zero on success, -1 on allocation error, `errno` will be set accordingly. ''' -cdef extern void libgamma_gamma_ramps64_free(libgamma_gamma_ramps64_t* this) +cdef extern void libgamma_gamma_ramps64_free(libgamma_gamma_ramps64_t* this) nogil ''' Release resources that are held by a gamma ramp strcuture that has been allocated by `libgamma_gamma_ramps64_initialise` or otherwise @@ -209,7 +209,7 @@ to the structure. ''' -cdef extern int libgamma_gamma_rampsf_initialise(libgamma_gamma_rampsf_t* this) +cdef extern int libgamma_gamma_rampsf_initialise(libgamma_gamma_rampsf_t* this) nogil ''' Initialise a gamma ramp in the proper way that allows all adjustment methods to read from and write to it without causing segmentation violation. @@ -221,7 +221,7 @@ sizes of the gamma ramps that should be allocated. @return Zero on success, -1 on allocation error, `errno` will be set accordingly. ''' -cdef extern void libgamma_gamma_rampsf_free(libgamma_gamma_rampsf_t* this) +cdef extern void libgamma_gamma_rampsf_free(libgamma_gamma_rampsf_t* this) nogil ''' Release resources that are held by a gamma ramp strcuture that has been allocated by `libgamma_gamma_rampsf_initialise` or otherwise @@ -232,7 +232,7 @@ to the structure. ''' -cdef extern int libgamma_gamma_rampsd_initialise(libgamma_gamma_rampsd_t* this) +cdef extern int libgamma_gamma_rampsd_initialise(libgamma_gamma_rampsd_t* this) nogil ''' Initialise a gamma ramp in the proper way that allows all adjustment methods to read from and write to it without causing segmentation violation. @@ -244,7 +244,7 @@ sizes of the gamma ramps that should be allocated. @return Zero on success, -1 on allocation error, `errno` will be set accordingly. ''' -cdef extern void libgamma_gamma_rampsd_free(libgamma_gamma_rampsd_t* this) +cdef extern void libgamma_gamma_rampsd_free(libgamma_gamma_rampsd_t* this) nogil ''' Release resources that are held by a gamma ramp strcuture that has been allocated by `libgamma_gamma_rampsd_initialise` or otherwise |