disable rwlocks on nonstop klt model

It appears nonstops new threading model defines some level of rwlock
pthread api, but its not working properly.  Disable rwlocks for
_KLT_MODEL_ for now

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28635)
This commit is contained in:
Neil Horman 2024-07-29 15:17:07 -04:00
parent 2788ec5017
commit d8ecbb37dc
1 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,11 @@
# include <assert.h>
# ifdef PTHREAD_RWLOCK_INITIALIZER
/*
* The Non-Stop KLT thread model currently seems broken in its rwlock
* implementation
*/
# if defined(PTHREAD_RWLOCK_INITIALIZER) && !defined(_KLT_MODEL_)
# define USE_RWLOCK
# endif