Searched refs:threads (Results 1 – 1 of 1) sorted by relevance
/net-tools-latest/mbedtls-2.4.0/programs/ssl/ |
D | ssl_pthread_server.c | 120 static pthread_info_t threads[MAX_NUM_THREADS]; variable 284 if( threads[i].active == 0 ) in thread_create() 287 if( threads[i].data.thread_complete == 1 ) in thread_create() 290 pthread_join(threads[i].thread, NULL ); in thread_create() 291 memset( &threads[i], 0, sizeof(pthread_info_t) ); in thread_create() 302 memcpy( &threads[i].data, &base_info, sizeof(base_info) ); in thread_create() 303 threads[i].active = 1; in thread_create() 304 memcpy( &threads[i].data.client_fd, client_fd, sizeof( mbedtls_net_context ) ); in thread_create() 306 if( ( ret = pthread_create( &threads[i].thread, NULL, handle_ssl_connection, in thread_create() 307 &threads[i].data ) ) != 0 ) in thread_create() [all …]
|