thread: remove remnants of ossl_crypto_mem_barrier

Commit ac21c1780a VMS knows POSIX threads too!
removed ossl_crypto_mem_barrier for POSIX systems.

Remove it for Win32 and other architectures as well.

Resolves issue #19506 Unable to build under bcc32c environment (Embarcadero
clang compiler).

Signed-off-by: Čestmír Kalina <ckalina@redhat.com>

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20538)
This commit is contained in:
Čestmír Kalina 2023-03-17 17:32:26 +01:00 committed by Pauli
parent fdfa63dfd6
commit 41c3c71382
3 changed files with 0 additions and 11 deletions

View File

@ -70,8 +70,4 @@ void ossl_crypto_condvar_free(CRYPTO_CONDVAR **cv)
{ {
} }
void ossl_crypto_mem_barrier(void)
{
}
#endif #endif

View File

@ -179,9 +179,4 @@ void ossl_crypto_condvar_free(CRYPTO_CONDVAR **cv)
*cv_p = NULL; *cv_p = NULL;
} }
void ossl_crypto_mem_barrier(void)
{
MemoryBarrier();
}
#endif #endif

View File

@ -117,6 +117,4 @@ int ossl_crypto_thread_native_exit(void);
int ossl_crypto_thread_native_is_self(CRYPTO_THREAD *thread); int ossl_crypto_thread_native_is_self(CRYPTO_THREAD *thread);
int ossl_crypto_thread_native_clean(CRYPTO_THREAD *thread); int ossl_crypto_thread_native_clean(CRYPTO_THREAD *thread);
void ossl_crypto_mem_barrier(void);
#endif /* OSSL_INTERNAL_THREAD_ARCH_H */ #endif /* OSSL_INTERNAL_THREAD_ARCH_H */