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

Hw05 frsama #35

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

Hw05 frsama #35

wants to merge 1 commit into from

Conversation

frsama
Copy link

@frsama frsama commented Aug 9, 2022

1.将和用户相关的若干变量、结构体和函数封装成了类。
2.给用户类的几个哈希表上了锁。
3.将线程池改为类实现,丰富了功能。线程池改为常驻固定个数的工作线程,使用了条件变量,任务队列中无任务时工作线程会一直wait。线程池实例在析构时,会自动等待所有线程join。

1.将和用户相关的若干变量、结构体和函数封装成了类。
2.给用户类的几个哈希表上了锁。
3.将线程池改为类实现,丰富了功能。线程池改为常驻固定个数的工作线程,使用了条件变量,任务队列中无任务时工作线程会一直wait。
@frsama frsama changed the title Update main.cpp Hw05 frsama Aug 9, 2022
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