* atomic_dec_and_test - decrement and test * @v: pointer of type atomic_t * * Atomically decrements @v by 1 and * returns true if the result is 0, or false for all other * cases. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */
| 119 | * useful range of an atomic_t is only 24 bits. |
| 120 | */ |
| 121 | static inline int atomic_dec_and_test(atomic_t volatile *v) |
| 122 | { |
| 123 | return (0 == InterlockedDecrement((PLONG)(&v->counter))); |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * atomic_inc_and_test - increment and test |
no outgoing calls
no test coverage detected