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_error.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 '')
-rw-r--r-- | src/libgamma_native_error.pyx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libgamma_native_error.pyx b/src/libgamma_native_error.pyx index fb2d8d2..6963a44 100644 --- a/src/libgamma_native_error.pyx +++ b/src/libgamma_native_error.pyx @@ -23,15 +23,15 @@ from posix.unistd cimport gid_t from libc.string cimport strerror as c_strerror -cdef extern gid_t libgamma_group_gid_get() -cdef extern void libgamma_group_gid_set(gid_t) +cdef extern gid_t libgamma_group_gid_get() nogil +cdef extern void libgamma_group_gid_set(gid_t) nogil ''' Group that the user needs to be a member of if `LIBGAMMA_DEVICE_REQUIRE_GROUP` is returned. ''' -cdef extern const char* libgamma_group_name_get() -cdef extern void libgamma_group_name_set(const char*) +cdef extern const char* libgamma_group_name_get() nogil +cdef extern void libgamma_group_name_set(const char*) nogil ''' Group that the user needs to be a member of if `LIBGAMMA_DEVICE_REQUIRE_GROUP` is returned, @@ -40,7 +40,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` @@ -59,7 +59,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. @@ -69,7 +69,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. |