Changeset 63e27ef in mainline for kernel/generic/src/synch/futex.c
- Timestamp:
- 2017-06-19T21:47:42Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- deacc58d
- Parents:
- 7354b5e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/futex.c
r7354b5e r63e27ef 61 61 */ 62 62 63 #include <assert.h> 63 64 #include <synch/futex.h> 64 65 #include <synch/mutex.h> … … 241 242 static void futex_add_ref(futex_t *futex) 242 243 { 243 ASSERT(spinlock_locked(&futex_ht_lock));244 ASSERT(0 < futex->refcount);244 assert(spinlock_locked(&futex_ht_lock)); 245 assert(0 < futex->refcount); 245 246 ++futex->refcount; 246 247 } … … 249 250 static void futex_release_ref(futex_t *futex) 250 251 { 251 ASSERT(spinlock_locked(&futex_ht_lock));252 ASSERT(0 < futex->refcount);252 assert(spinlock_locked(&futex_ht_lock)); 253 assert(0 < futex->refcount); 253 254 254 255 --futex->refcount; … … 459 460 futex_t *futex; 460 461 461 ASSERT(keys == 1);462 assert(keys == 1); 462 463 463 464 futex = hash_table_get_instance(item, futex_t, ht_link);
Note:
See TracChangeset
for help on using the changeset viewer.