Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovanniBussi committed Oct 14, 2024
1 parent 1dec0e0 commit b377dc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/cplumed.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ cdef extern from "Plumed.h":
plumed_error_filesystem_path path1
plumed_error_filesystem_path path2
# ignore other members
# C functions declared as nogil
# see https://github.com/plumed/plumed2/pull/1129#issuecomment-2410867829
void plumed_cmd_safe_nothrow(plumed p,const char*key,plumed_safeptr safe,plumed_nothrow_handler nothrow) nogil
void plumed_error_set(void*ptr,int code,const char*what,const void* opt) nogil
void plumed_error_init(plumed_error* error) nogil
Expand Down
1 change: 1 addition & 0 deletions python/plumed.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ cdef class Plumed:
cplumed.plumed_error_init(&error)
nothrow.ptr=&error
nothrow.handler=cplumed.plumed_error_set
# see https://github.com/plumed/plumed2/pull/1129#issuecomment-2410867829
with cython.nogil():
cplumed.plumed_cmd_safe_nothrow(self.c_plumed,ckey,safe,nothrow)
if(error.code):
Expand Down

0 comments on commit b377dc6

Please sign in to comment.