Lines Matching refs:threads
95 static pthread_info_t threads[MAX_NUM_THREADS]; variable
247 if (threads[i].active == 0) { in thread_create()
251 if (threads[i].data.thread_complete == 1) { in thread_create()
253 pthread_join(threads[i].thread, NULL); in thread_create()
254 memset(&threads[i], 0, sizeof(pthread_info_t)); in thread_create()
266 memcpy(&threads[i].data, &base_info, sizeof(base_info)); in thread_create()
267 threads[i].active = 1; in thread_create()
268 memcpy(&threads[i].data.client_fd, client_fd, sizeof(mbedtls_net_context)); in thread_create()
270 if ((ret = pthread_create(&threads[i].thread, NULL, handle_ssl_connection, in thread_create()
271 &threads[i].data)) != 0) { in thread_create()
310 memset(threads, 0, sizeof(threads)); in main()