aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma_native_error.w32.pyx
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-04-21 17:44:25 +0200
committerMattias Andrée <maandree@kth.se>2017-04-21 17:44:25 +0200
commit131a451ba0d5ec7bb515c82914b6b52ca66a2a66 (patch)
treeed6e094ea8fc8325b07612859b2d36b7978f1799 /src/libgamma_native_error.w32.pyx
parenttypo (diff)
downloadpylibgamma-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_error.w32.pyx')
-rw-r--r--src/libgamma_native_error.w32.pyx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libgamma_native_error.w32.pyx b/src/libgamma_native_error.w32.pyx
index 673da5d..abef314 100644
--- a/src/libgamma_native_error.w32.pyx
+++ b/src/libgamma_native_error.w32.pyx
@@ -35,7 +35,7 @@ cannot be determined.
'''
-cdef extern void libgamma_perror(const char* name, int error_code)
+cdef extern void libgamma_perror(const char* name, int error_code) nogil
'''
Prints an error to stderr in a `perror` fashion,
however this function will not translate the `libgamma`
@@ -54,7 +54,7 @@ and, if known, its name.
@param value The error code, may be an `errno` value.
'''
-cdef extern const char* libgamma_name_of_error(int value)
+cdef extern const char* libgamma_name_of_error(int value) nogil
'''
Returns the name of the definition associated with a `libgamma` error code.
@@ -64,7 +64,7 @@ Returns the name of the definition associated with a `libgamma` error code.
should not be `free`:d.
'''
-cdef extern int libgamma_value_of_error(const char* name)
+cdef extern int libgamma_value_of_error(const char* name) nogil
'''
Return the value of a `libgamma` error definition refered to by name.