Ignore:
Timestamp:
2025-04-09T16:19:40Z (6 days ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
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)
Message:

Enable static initialization of kernel synchronization primitives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/synch/condvar.h

    r3e7948c r597fa24  
    4646} condvar_t;
    4747
     48#define CONDVAR_INITIALIZER(name) (condvar_t) { \
     49        .wq = WAITQ_INITIALIZER((name).wq), \
     50}
     51
     52#define CONDVAR_INITIALIZE(name) \
     53        condvar_t name = CONDVAR_INITIALIZER(name)
     54
    4855#ifdef CONFIG_SMP
    4956#define _condvar_wait_timeout_spinlock(cv, lock, usec, flags) \
Note: See TracChangeset for help on using the changeset viewer.