Changeset 9f945464 in mainline for kernel/generic/src/synch/mutex.c
- Timestamp:
- 2025-04-09T16:36:30Z (6 days ago)
- Children:
- 3acb63b5
- Parents:
- 2c94501 (diff), 597fa24 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Wayne Thornton <wmthornton-dev@…> (2025-04-09 16:36:30)
- git-committer:
- GitHub <noreply@…> (2025-04-09 16:36:30)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/mutex.c
r2c94501 r9f945464 53 53 void mutex_initialize(mutex_t *mtx, mutex_type_t type) 54 54 { 55 mtx->type = type; 56 mtx->owner = NULL; 57 mtx->nesting = 0; 58 semaphore_initialize(&mtx->sem, 1); 55 *mtx = MUTEX_INITIALIZER(*mtx, type); 59 56 } 60 57
Note:
See TracChangeset
for help on using the changeset viewer.