equal
deleted
inserted
replaced
142 #endif |
142 #endif |
143 |
143 |
144 /* |
144 /* |
145 * NOTE: mutex_trylock() follows the spin_trylock() convention, |
145 * NOTE: mutex_trylock() follows the spin_trylock() convention, |
146 * not the down_trylock() convention! |
146 * not the down_trylock() convention! |
|
147 * |
|
148 * Returns 1 if the mutex has been acquired successfully, and 0 on contention. |
147 */ |
149 */ |
148 extern int mutex_trylock(struct mutex *lock); |
150 extern int mutex_trylock(struct mutex *lock); |
149 extern void mutex_unlock(struct mutex *lock); |
151 extern void mutex_unlock(struct mutex *lock); |
150 |
152 |
151 #endif |
153 #endif |