Skip to content

Commit e15448e

Browse files
committed
Acquire the GIL at the helper function
1 parent 32ba902 commit e15448e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libzim/libzim.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ cdef class ZimArticle:
7373

7474
#------ Helper for pure virtual methods --------
7575

76-
cdef get_article_method_from_object_ptr(void *ptr, string method, int *error):
76+
cdef get_article_method_from_object_ptr(void *ptr, string method, int *error) with gil:
7777
cdef ZimArticle art = <ZimArticle>(ptr)
7878
try:
7979
func = getattr(art, method.decode('UTF-8'))

0 commit comments

Comments
 (0)