mirror of
https://gitee.com/openharmony/resourceschedule_ffrt
synced 2024-11-30 08:40:40 +00:00
ffrt mutex/recursive_mutex api normalization
Signed-off-by: yuanzhipu <2710242656@qq.com>
This commit is contained in:
parent
36663943b6
commit
ef4e2e751f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user