Changeset 409 for trunk/kernel/libk/remote_spinlock.h
- Timestamp:
- Dec 20, 2017, 4:51:09 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_spinlock.h
r101 r409 33 33 * This structure defines a remote spinlock, that can be used to protect 34 34 * exclusive access to a trans-cluster shared resource. It can be taken by any 35 * thread running in any cluster. All access functions use remote pointers, 36 * and the owner thread is registrated as a remote pointer. 35 * thread running in any cluster. All access functions use remote pointers. 36 * The "owner" and "list" are optionnal fields used for debug. 37 * It register the list of all remote spinlocks taken by a given thread. 37 38 **************************************************************************************/ 38 39 … … 40 41 { 41 42 volatile uint32_t taken; /*! free if 0 / taken if non zero */ 43 44 #if CONFIG_LOCKS_DEBUG 42 45 xptr_t owner; /*! extended pointer on the owner thread */ 43 46 xlist_entry_t list; /*! list of all remote_lock taken by owner */ 47 #endif 48 44 49 } 45 50 remote_spinlock_t; … … 100 105 void remote_spinlock_unlock( xptr_t lock_xp ); 101 106 102 /***************************************************************************************103 * This debug function returns the current owner of a remote spinlock.104 ***************************************************************************************105 * @ lock_xp : extended pointer on the remote spinlock106 * @ return XPTR_NULL if not taken / return owner thread if lock already taken107 **************************************************************************************/108 xptr_t remote_spinlock_owner( xptr_t lock_xp );109 110 111 107 #endif
Note: See TracChangeset
for help on using the changeset viewer.