mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-25 02:02:03 +03:00
Removed POLARSSL_THREADING_DUMMY option
This commit is contained in:
@ -29,37 +29,6 @@
|
||||
|
||||
#include "polarssl/threading.h"
|
||||
|
||||
#if defined(POLARSSL_THREADING_DUMMY)
|
||||
static int threading_mutex_init_dummy( threading_mutex_t *mutex )
|
||||
{
|
||||
((void) mutex );
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
static int threading_mutex_free_dummy( threading_mutex_t *mutex )
|
||||
{
|
||||
((void) mutex );
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
static int threading_mutex_lock_dummy( threading_mutex_t *mutex )
|
||||
{
|
||||
((void) mutex );
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
static int threading_mutex_unlock_dummy( threading_mutex_t *mutex )
|
||||
{
|
||||
((void) mutex );
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
int (*polarssl_mutex_init)( threading_mutex_t * ) = threading_mutex_init_dummy;
|
||||
int (*polarssl_mutex_free)( threading_mutex_t * ) = threading_mutex_free_dummy;
|
||||
int (*polarssl_mutex_lock)( threading_mutex_t * ) = threading_mutex_lock_dummy;
|
||||
int (*polarssl_mutex_unlock)( threading_mutex_t * ) = threading_mutex_unlock_dummy;
|
||||
#endif /* POLARSSL_THREADING_DUMMY */
|
||||
|
||||
#if defined(POLARSSL_THREADING_PTHREAD)
|
||||
static int threading_mutex_init_pthread( threading_mutex_t *mutex )
|
||||
{
|
||||
|
Reference in New Issue
Block a user