fix(library/parray): missing lock
This commit is contained in:
parent
a3679a43a1
commit
3f5bbfa0cf
1 changed files with 1 additions and 0 deletions
|
|
@ -401,6 +401,7 @@ class parray {
|
|||
if (get_rc(c) == 1 && c->kind() == Root) {
|
||||
return c->size();
|
||||
} else if (ThreadSafe) {
|
||||
lock_guard<mutex> lock(*c->get_mutex());
|
||||
if (c->kind() != Root)
|
||||
reroot(c);
|
||||
return c->size();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue