| 23 | void ScopePool::DeleteScope(Scope *scope) { delete scope; } |
| 24 | |
| 25 | void ScopePool::Insert(std::unique_ptr<Scope> &&s) { |
| 26 | std::lock_guard<std::mutex> guard(mtx_); |
| 27 | scopes_.insert(s.release()); |
| 28 | } |
| 29 | |
| 30 | void ScopePool::Remove(Scope *s) { |
| 31 | size_t has_scope = 0; |
no test coverage detected