Changeset 43114c5 in mainline for src/synch/rwlock.c
- Timestamp:
- 2005-04-09T18:22:53Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8262010
- Parents:
- e6ba9a3f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/synch/rwlock.c
re6ba9a3f r43114c5 81 81 82 82 pri = cpu_priority_high(); 83 spinlock_lock(& the->thread->lock);84 the->thread->rwlock_holder_type = RWLOCK_WRITER;85 spinlock_unlock(& the->thread->lock);83 spinlock_lock(&THREAD->lock); 84 THREAD->rwlock_holder_type = RWLOCK_WRITER; 85 spinlock_unlock(&THREAD->lock); 86 86 cpu_priority_restore(pri); 87 87 … … 121 121 122 122 pri = cpu_priority_high(); 123 spinlock_lock(& the->thread->lock);124 the->thread->rwlock_holder_type = RWLOCK_READER;125 spinlock_unlock(& the->thread->lock);123 spinlock_lock(&THREAD->lock); 124 THREAD->rwlock_holder_type = RWLOCK_READER; 125 spinlock_unlock(&THREAD->lock); 126 126 127 127 spinlock_lock(&rwl->lock);
Note:
See TracChangeset
for help on using the changeset viewer.