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

finish #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

finish #29

wants to merge 1 commit into from

Conversation

PtCu
Copy link

@PtCu PtCu commented Feb 16, 2022

  1. 将计时器改成基于chrono的。
  2. 用了unique_lock + shared_mutex使得线程安全,同时区分了读和写。
  3. 修改了线程池,利用了任务队列使得能够支持巨多线程的情况,并能够在退出作用域后自动join()。
  4. 坑:MSVC下namespace test必须定义在全局变量tpool之前,不然所有输出都是空白。

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

Successfully merging this pull request may close these issues.

1 participant