View Model: recursive mutex (#2532)
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
27341fc193
commit
3617ad33e4
@ -81,7 +81,7 @@ void view_allocate_model(View* view, ViewModelType type, size_t size) {
|
|||||||
view->model = malloc(size);
|
view->model = malloc(size);
|
||||||
} else if(view->model_type == ViewModelTypeLocking) {
|
} else if(view->model_type == ViewModelTypeLocking) {
|
||||||
ViewModelLocking* model = malloc(sizeof(ViewModelLocking));
|
ViewModelLocking* model = malloc(sizeof(ViewModelLocking));
|
||||||
model->mutex = furi_mutex_alloc(FuriMutexTypeNormal);
|
model->mutex = furi_mutex_alloc(FuriMutexTypeRecursive);
|
||||||
furi_check(model->mutex);
|
furi_check(model->mutex);
|
||||||
model->data = malloc(size);
|
model->data = malloc(size);
|
||||||
view->model = model;
|
view->model = model;
|
||||||
|
Loading…
Reference in New Issue
Block a user