Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88284
b: refs/heads/master
c: dc07e72
h: refs/heads/master
v: v3
  • Loading branch information
J. Bruce Fields authored and Jonathan Corbet committed Apr 11, 2008
1 parent 2dfdf71 commit 5c7a4a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b40b5162ac4e5b94d16cd9fb0a87168b1633c7dd
refs/heads/master: dc07e721a26ec7e0adb66340f1763d220cfbbd0c
3 changes: 3 additions & 0 deletions trunk/include/linux/spinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ static inline void double_spin_unlock(spinlock_t *l1, spinlock_t *l2,
* atomic_dec_and_lock - lock on reaching reference count zero
* @atomic: the atomic counter
* @lock: the spinlock in question
*
* Decrements @atomic by 1. If the result is 0, returns true and locks
* @lock. Returns false for all other cases.
*/
extern int _atomic_dec_and_lock(atomic_t *atomic, spinlock_t *lock);
#define atomic_dec_and_lock(atomic, lock) \
Expand Down

0 comments on commit 5c7a4a8

Please sign in to comment.