Skip to content

Commit

Permalink
Merge pull request #45 from 0Bitbiscuits/toolchain
Browse files Browse the repository at this point in the history
fix a bug at ftrylockfile(patch)
  • Loading branch information
BernardXiong authored Dec 28, 2024
2 parents d01d4e7 + fb64419 commit 39a1341
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 39a1341

Please sign in to comment.