创建poll线程
1 2 3 4 5 6 7 8 9 10 11 | static void *_zip_async_poll_thread(void *data) { while (1) { ret = wcrypto_comp_poll (q, 1); if (ret < 0) { break; } } return NULL; } pthread_create(&thrds, NULL,_ zip _async_poll_thread, &data); |
父主题: COMP异步接口使用示例
1 2 3 4 5 6 7 8 9 10 11 | static void *_zip_async_poll_thread(void *data) { while (1) { ret = wcrypto_comp_poll (q, 1); if (ret < 0) { break; } } return NULL; } pthread_create(&thrds, NULL,_ zip _async_poll_thread, &data); |