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

wyh hw05 #39

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

Conversation

WangYuHang-cmd
Copy link

1.使用shared_mutex,在do_register和do_login函数中分别使用写者锁,在do_queryuser函数中使用读者锁进行管理。
2.对于do_queryuser函数map在进行索引时可能出错的问题进行处理。但是期望可以能够让没有被注册的用户名的线程等待直到用户名被注册了为止,暂时还不知道怎么实现
3.tpool的析构函数会自动对所有future变量进行一个get操作,以使得所有线程都结束后再退出

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