Skip to content

Commit

Permalink
fix a bug at ftrylockfile(patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
0Bitbiscuits committed Dec 24, 2024
1 parent d01d4e7 commit fb64419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/stdio_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
#define FLOCK(f) \
do{ \
if(!f->_flock) __lock_init_recursive(f->_flock); \
return __lock_take_recursive(f->_flock); \
__lock_take_recursive(f->_flock); \
}while(0)
#define FTRYLOCK(f) \
do{ \
if(!f->_flock) __lock_init_recursive(f->_flock); \
__lock_trytake_recursive(f->_flock); \
return __lock_trytake_recursive(f->_flock); \
}while(0)
#define FUNLOCK(f) __lock_release_recursive(f->_flock)

Expand Down

0 comments on commit fb64419

Please sign in to comment.