This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RESEND PATCH 1/3] Mutex: Accelerate lock acquisition by queuing spinner
- From: Florian Weimer <fweimer at redhat dot com>
- To: Kemi Wang <kemi dot wang at intel dot com>
- Cc: Carlos <carlos at redhat dot com>, Glibc alpha <libc-alpha at sourceware dot org>
- Date: Mon, 17 Dec 2018 13:55:35 +0100
- Subject: Re: [RESEND PATCH 1/3] Mutex: Accelerate lock acquisition by queuing spinner
- References: <1545049854-14472-1-git-send-email-kemi.wang@intel.com>
* Kemi Wang:
> +# define PTHREAD_QUEUESPINNER_MUTEX_INITIALIZER_NP \
> + { { 0, 0, 0, PTHREAD_MUTEX_QUEUESPINNER_NP, { 0, 0, 0, 0 }, 0, \
> + { __PTHREAD_SPINS }, { 0, 0 } } }
Is it really necessary to add the initializer?
Without it, we can remove all references to
PTHREAD_QUEUESPINNER_MUTEX_INITIALIZER_NP from the hot path in case
something better comes up.
Thanks,
Florian