]> Savannah Git Hosting - gnulib.git/commit
asyncsafe-spin: Reduce code duplication.
authorBruno Haible <bruno@clisp.org>
Fri, 3 Jul 2020 10:27:37 +0000 (12:27 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 3 Jul 2020 10:28:08 +0000 (12:28 +0200)
commit6b91be0bcbe64077d1c6a380c4597943e710734c
tree4e642ee5ad1d7cab1344db7f08c55544911d73b9
parentaf1a4b67201fe86611e6bf4a1ed528127ba85158
asyncsafe-spin: Reduce code duplication.

* lib/asyncsafe-spin.c: (do_lock, do_unlock): New functions.
(asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
* modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
ChangeLog
lib/asyncsafe-spin.c
modules/asyncsafe-spin