Changeset 597fa24 in mainline for kernel/generic/include/synch/mutex.h
- Timestamp:
- 2025-04-09T16:19:40Z (6 days ago)
- Branches:
- master
- Children:
- 9f945464, a188131
- Parents:
- 3e7948c
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-09 16:08:09)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-09 16:19:40)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/synch/mutex.h
r3e7948c r597fa24 56 56 } mutex_t; 57 57 58 #define MUTEX_INITIALIZER(name, mtype) (mutex_t) { \ 59 .type = (mtype), \ 60 .sem = SEMAPHORE_INITIALIZER((name).sem, 1), \ 61 .owner = NULL, \ 62 .nesting = 0, \ 63 } 64 65 #define MUTEX_INITIALIZE(name, mtype) \ 66 mutex_t name = MUTEX_INITIALIZER(name, mtype) 67 58 68 extern void mutex_initialize(mutex_t *, mutex_type_t); 59 69 extern bool mutex_locked(mutex_t *);
Note:
See TracChangeset
for help on using the changeset viewer.