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

homework5 #27

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

homework5 #27

wants to merge 1 commit into from

Conversation

Enemy-77
Copy link

@Enemy-77 Enemy-77 commented Feb 8, 2022

  1. register login query 使用读写锁,除query是读外要加 std::shared_lock,其余需要加 std::unique_lock
  2. login 的计时改为 std::chrono
  3. 实现简易得不能再简易得线程池,新增一个容器容纳线程,在解构函数中 join。因为 m_pool 是全局变量,因而在 main 返回时才会调用解构。

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