Skip to content

Commit ddfdedd

Browse files
authored
Update threadpool_cpp.mdx
1 parent 606e7a3 commit ddfdedd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/docs/computer-science/cpp_backend/threadpool_cpp.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void ThreadPool::Worker() {
8686
**单队列维护:**
8787
8888
1. nonblock_(bool): 未阻塞标记。为true时,队列不会阻塞。初始(构造时)默认为阻塞状态。
89-
2. queue_(std::queue<T>): 底层存储容器。
89+
2. `queue_(std::queue<T>)`: 底层存储容器。
9090
3. mutex_(std::mutex): 保证多线程操作安全的互斥锁。
9191
4. not_empty_(std::condition_variable):用于线程前同步。
9292

0 commit comments

Comments
 (0)