Lines Matching refs:attr
284 int ffrt_mutexattr_init(ffrt_mutexattr_t* attr)
286 if (attr == nullptr) {
287 FFRT_LOGE("attr should not be empty");
290 attr->storage = static_cast<long>(ffrt_mutex_default);
295 int ffrt_mutexattr_settype(ffrt_mutexattr_t* attr, int type)
297 if (attr == nullptr) {
298 FFRT_LOGE("attr should not be empty");
305 attr->storage = static_cast<long>(type);
310 int ffrt_mutexattr_gettype(ffrt_mutexattr_t* attr, int* type)
312 if (attr == nullptr || type == nullptr) {
313 FFRT_LOGE("attr or type should not be empty");
316 *type = static_cast<int>(attr->storage);
321 int ffrt_mutexattr_destroy(ffrt_mutexattr_t* attr)
323 if (attr == nullptr) {
324 FFRT_LOGE("attr should not be empty");
331 int ffrt_mutex_init(ffrt_mutex_t* mutex, const ffrt_mutexattr_t* attr)
337 if (attr == nullptr || attr->storage == static_cast<long>(ffrt_mutex_normal)) {
342 } else if (attr->storage == static_cast<long>(ffrt_mutex_recursive)) {