* 传入数据 * @param value */
| 104 | * @param value |
| 105 | */ |
| 106 | CVoid push(T&& value) { |
| 107 | std::unique_ptr<T> task(std::make_unique<T>(std::move(value))); |
| 108 | CGRAPH_LOCK_GUARD lk(mutex_); |
| 109 | queue_.push(std::move(task)); |
| 110 | cv_.notify_one(); |
| 111 | } |
| 112 | |
| 113 | |
| 114 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected