Lines Matching refs:threads
107 static pthread_info_t threads[MAX_NUM_THREADS]; variable
259 if (threads[i].active == 0) { in thread_create()
263 if (threads[i].data.thread_complete == 1) { in thread_create()
265 pthread_join(threads[i].thread, NULL); in thread_create()
266 memset(&threads[i], 0, sizeof(pthread_info_t)); in thread_create()
278 memcpy(&threads[i].data, &base_info, sizeof(base_info)); in thread_create()
279 threads[i].active = 1; in thread_create()
280 memcpy(&threads[i].data.client_fd, client_fd, sizeof(mbedtls_net_context)); in thread_create()
282 if ((ret = pthread_create(&threads[i].thread, NULL, handle_ssl_connection, in thread_create()
283 &threads[i].data)) != 0) { in thread_create()
322 memset(threads, 0, sizeof(threads)); in main()