mil.dod.th.ose.shared/src/mil/dod/th/ose/shared/pm/CountingWakeLock.java
public void cancel()
    {
        synchronized (m_LockObj)
        {
            if (m_Count > 0)
            {
                m_Count--;
    
                if (m_Count == 0 && m_TheWakeLock != null)
                {
                    m_TheWakeLock.cancel();
                }
            }
        }
    }
/**
     * Decrement the current count and call {@link WakeLock#cancel()} if the new count is zero.
     */
Decrement the current count and call  WakeLock#cancel() if the new count is zero.
Decrement the current count and call WakeLock#cancel () if the new count is zero .
public void cancel()
    {
        synchronized (m_LockObj)
        {
            if (m_Count > 0)
            {
                m_Count--;
                if (m_Count == 0 && m_TheWakeLock != null)
                {
                    m_TheWakeLock.cancel();
                }
            }
        }
    }
public void cancel ( ) { synchronized ( m_LockObj ) { if ( m_Count > 0 ) { m_Count -- ; if ( m_Count == 0 && m_TheWakeLock != null ) { m_TheWakeLock . cancel ( ) ; } } } }
Decrement the current count and call {@link WakeLock#cancel()} if the new count is zero.
Decrement the current count and call { @link WakeLock#cancel () } if the new count is zero .