Skip to content

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.

1 participant