Skip to content

Commit

Permalink
Fix typo in porting guide
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum committed Jul 15, 2024
1 parent a5f591b commit e9ff60d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/porting.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,15 @@ typedef struct lib_state_struct {
} lib_state_struct;
int call_library_function(lib_state_struct *lib_state) {
PyMutex_Lock(state->lock);
PyMutex_Lock(lib_state->lock);
library_function(lib_state->state);
PyMutex_Unlock(state->lock)
PyMutex_Unlock(lib_state->lock)
}
int call_another_library_function(lib_state_struct *lib_state) {
PyMutex_Lock(state->lock);
PyMutex_Lock(lib_state->lock);
another_library_function(lib_state->state);
PyMutex_Unlock(state->lock)
PyMutex_Unlock(lib_state->lock)
}
```

Expand Down

0 comments on commit e9ff60d

Please sign in to comment.