Commit Graph

7 Commits

Author SHA1 Message Date
liujialiang a346d3b985 Add a new feature for debugging refbase
Add a new class called RefTracker to tack the lifetime of a RefBase.

Signed-off-by: liujialiang <liujialiang10@huawei.com>
2022-05-23 12:01:19 +08:00
liubb_0516 b41f114bb6 add AttemptIncStrong
Signed-off-by: liubb_0516 <liubeibei8@huawei.com>
2022-03-11 22:12:50 +08:00
yaofeng.wang 77d99b5ee0 Fix sptr multi-release point in concurrent environment
1. delete the strong reference when RefCount == 1 && !LifeTimeExtended
2. otherwise delete weak reference, when call DecWeakRef

issue: https://gitee.com/openharmony/utils_native/issues/I4SK5B?from=project-issue
Signed-off-by: yaofeng.wang <wangyaofeng.wang@huawei.com>
2022-02-07 17:22:53 +08:00
lengqinjie 4bbe0c9950 forgotten decrease the reference of strong pointer
Signed-off-by: lengqinjie <15390014138@163.com>
2021-10-24 07:00:33 +08:00
lengqinjie c1158fdb89 forgotten decrease reference of strong pointer
Signed-off-by: lengqinjie <15390014138@163.com>
2021-10-23 22:09:11 +08:00
lengqinjie 6661f7f75c forgotten decrease reference of strong pointer
Signed-off-by: lengqinjie <15390014138@163.com>
2021-10-23 21:54:28 +08:00
mamingshuai 2317226c6d update OpenHarmony 2.0 Canary 2021-06-02 02:33:28 +08:00