Changeset 581 for trunk/kernel/libk/remote_mutex.c
- Timestamp:
- Oct 10, 2018, 3:11:53 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_mutex.c
r563 r581 191 191 void remote_mutex_lock( xptr_t mutex_xp ) 192 192 { 193 // get cluster and pointers on calling thread 194 cxy_t caller_cxy = local_cxy; 195 thread_t * caller_ptr = CURRENT_THREAD; 196 xptr_t caller_xp = XPTR( caller_cxy , caller_ptr ); 197 198 // check calling thread can yield 199 thread_assert_can_yield( caller_ptr , __FUNCTION__ ); 200 193 201 // get cluster and local pointer on mutex 194 202 remote_mutex_t * mutex_ptr = GET_PTR( mutex_xp ); … … 200 208 xptr_t root_xp = XPTR( mutex_cxy , &mutex_ptr->root ); 201 209 xptr_t lock_xp = XPTR( mutex_cxy , &mutex_ptr->lock ); 202 203 // get cluster and pointers on calling thread204 cxy_t caller_cxy = local_cxy;205 thread_t * caller_ptr = CURRENT_THREAD;206 xptr_t caller_xp = XPTR( caller_cxy , caller_ptr );207 208 // check calling thread can yield209 assert( (caller_ptr->busylocks == 0),210 "cannot yield : busylocks = %d\n", caller_ptr->busylocks );211 210 212 211 while( 1 )
Note: See TracChangeset
for help on using the changeset viewer.