> - Solaris cc: are handled through inline asm, based on the code that
> GCC would generate.
Sun Studio 11 cc (__SUNPRO_C == 0x580) does not support GCC extended asm syntax,
but Sun Studio 12 cc (__SUNPRO_C >= 0x590) does.
2020-07-03 Bruno Haible
asyncsafe-spin: Use GCC extende
A small code unification:
2020-07-03 Bruno Haible
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
This patch series adds a module 'asyncsafe-spin', with async-safe spin locks.
What is it?
---
An async-safe spin lock is a spin lock that can be used to communicate between
a thread that executes normal code and a thread that executes a signal handler.
The table in section 2.4.3 of