Changeset 409 for trunk/kernel/libk/rwlock.h
- Timestamp:
- Dec 20, 2017, 4:51:09 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/rwlock.h
r14 r409 40 40 * As this local lock is only accessed by the local threads, if the lock is taken, 41 41 * the new-comers use a busy waiting policy with a delay between retry. 42 * TODO : Introduce the rwlocks in the list of locks taken by a given thread for debug. 42 43 ******************************************************************************************/ 43 44 … … 48 49 /******************************************************************************************* 49 50 * This structure defines a local rwlock. 51 * The "owner" and "list" fields are used for debug. 50 52 ******************************************************************************************/ 51 53 … … 55 57 uint32_t current; /*! ticket index of current owner */ 56 58 uint32_t count; /*! number of simultaneous readers threads */ 59 60 #if CONFIG_LOCKS_DEBUG 57 61 struct thread_s * owner; /*! pointer on curent writer thread */ 62 list_entry_t list; /*! member of list of locks taken by owner */ 63 #endif 64 58 65 } 59 66 rwlock_t;
Note: See TracChangeset
for help on using the changeset viewer.