Changeset 22f7769 in mainline for src/synch/semaphore.c
- Timestamp:
- 2005-10-17T23:31:41Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4b2c872d
- Parents:
- 75eacab
- File:
-
- 1 edited
-
src/synch/semaphore.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/synch/semaphore.c
r75eacab r22f7769 43 43 void semaphore_initialize(semaphore_t *s, int val) 44 44 { 45 pri_t pri;45 ipl_t ipl; 46 46 47 47 waitq_initialize(&s->wq); 48 48 49 pri = cpu_priority_high();49 ipl = interrupts_disable(); 50 50 51 51 spinlock_lock(&s->wq.lock); … … 53 53 spinlock_unlock(&s->wq.lock); 54 54 55 cpu_priority_restore(pri);55 interrupts_restore(ipl); 56 56 } 57 57
Note:
See TracChangeset
for help on using the changeset viewer.
