Fixed windows release version crash
commit86ff22136d8bd458dee5af4906759ce536d6cc32
authorFrank Li <frank.li@nxp.com>
Mon, 26 Sep 2022 18:32:00 +0000 (26 13:32 -0500)
committerFrank Li <frank.li@nxp.com>
Mon, 26 Sep 2022 18:36:12 +0000 (26 13:36 -0500)
tree222e7e2e51b274dc691e479a1fe102ad8e981302
parent388b07402b883aa6a5a979b03a12bafccfca43c7
Fixed windows release version crash

the shared_ptr ref count may be possible wrong when

shared_ptr g;

thread 1             thread2
{                    {
    read g.               g=b;
}      }

need lock when change g.

Signed-off-by: Frank Li <frank.li@nxp.com>
libuuu/buffer.cpp
libuuu/buffer.h