Skip to content

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