Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持异步下载吗? #12

Closed
weituotian opened this issue Feb 24, 2021 · 3 comments
Closed

支持异步下载吗? #12

weituotian opened this issue Feb 24, 2021 · 3 comments

Comments

@weituotian
Copy link

就是能够自动开线程下载,不阻塞界面

@JelinYao
Copy link
Owner

这个自己实现更方便,扩展性更好。

@weituotian
Copy link
Author

@JelinYao 直接用std::thread吗?

@JelinYao
Copy link
Owner

JelinYao commented Mar 5, 2021

可以用C++标准库的std::thread创建线程,也可以用Windows自己的API CreateThread创建线程,然后把HTTP请求放到线程里面去。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants