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 the hw05 #33

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

finish the hw05 #33

wants to merge 1 commit into from

Conversation

SkySailing
Copy link

  1. 把 login, register 等函数变成多线程安全的 - 10 分
  2. 把 login 的登录计时器改成基于 chrono 的 - 5 分
  3. 能利用 shared_mutex 区分读和写,unique_lock用于写操作,shared_lock用于读操作 - 10 分
  4. 用 lock_guard 系列符合 RAII 思想 - 5 分
  5. 让 ThreadPool::create 创建的线程保持后台运行不要退出 - 15 分
  6. 等待 tpool 中所有线程都结束后再退出 - 5 分
  7. 学了线程池的内容,`std::thread::hardware_concurrency`获取CPU核心数,返回当前系统支持的并发线程数.

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.

None yet

1 participant