[BACK]Return to kern_mutex.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/kern_mutex.c between version 1.64 and 1.64.4.1

version 1.64, 2017/01/26 04:11:56 version 1.64.4.1, 2017/04/30 04:56:55
Line 831  mutex_owner(kmutex_t *mtx)
Line 831  mutex_owner(kmutex_t *mtx)
 }  }
   
 /*  /*
    * mutex_ownable:
    *
    *      When compiled with LOCKDEBUG defined, ensure that the
    *      mutex is available.  We cannot use !mutex_owned()
    *      since that won't work correctly for spin mutexes.
    */
   int
   mutex_ownable(kmutex_t *mtx)
   {
   
   #ifdef LOCKDEBUG
           mutex_enter(mtx);
           mutex_exit(mtx);
   #endif
           return 1;
   }
   
   /*
  * mutex_tryenter:   * mutex_tryenter:
  *   *
  *      Try to acquire the mutex; return non-zero if we did.   *      Try to acquire the mutex; return non-zero if we did.

Legend:
Removed from v.1.64  
changed lines
  Added in v.1.64.4.1

CVSweb <webmaster@jp.NetBSD.org>