ffrt mutex/recursive_mutex api normalization

Signed-off-by: yuanzhipu <2710242656@qq.com>
This commit is contained in:
yuanzhipu 2024-07-27 20:20:59 +08:00
parent 36663943b6
commit ef4e2e751f

View File

@ -63,13 +63,13 @@ public:
{
ffrt_mutexattr_init(&attr);
ffrt_mutexattr_settype(&attr, ffrt_mutex_recursive);
ffrt_recursive_mutex_init(this, &attr);
ffrt_mutex_init(this, &attr);
}
~recursive_mutex()
{
ffrt_mutexattr_destroy(&attr);
ffrt_recursive_mutex_destroy(this);
ffrt_mutex_destroy(this);
}
recursive_mutex(recursive_mutex const&) = delete;