mil.dod.th.ose.bbb.platform/src/mil/dod/th/ose/bbb/platform/BeagleBoneBlackLockManager.java
public void addWakeLock(final WakeLock lock, final long startLockTimeMs, final long stopLockTimeMs)
    {
        final BeagleBoneBlackLockInfo lockInfo = new BeagleBoneBlackLockInfo(lock, startLockTimeMs, stopLockTimeMs);
        synchronized (m_Lock)
        {
            // Wake locks are scheduled based on system or wall clock time, so System.currentTimeMillis() must be used
            // to determine when locks are activated or scheduled
            if (lockInfo.getStartTimeMs() <= System.currentTimeMillis())
            {
                m_ActiveLocks.add(lockInfo);
                callActiveWakeLockAddedListners();
            }
            else
            {
                m_ScheduledLocks.add(lockInfo);
            }
        }
    }
/**
     * Adds the specified wake lock.
     * 
     * @param lock
     *      The wake lock to be added.
     * @param startLockTimeMs
     *      The start time of the wake lock.
     * @param stopLockTimeMs
     *      The end time of the wake lock.
     */
Adds the specified wake lock.

@param lock
The wake lock to be added.
@param startLockTimeMs
The start time of the wake lock.
@param stopLockTimeMs
The end time of the wake lock.
Adds the specified wake lock . @param lock The wake lock to be added . @param startLockTimeMs The start time of the wake lock . @param stopLockTimeMs The end time of the wake lock .
public void addWakeLock(final WakeLock lock, final long startLockTimeMs, final long stopLockTimeMs)
    {
        final BeagleBoneBlackLockInfo lockInfo = new BeagleBoneBlackLockInfo(lock, startLockTimeMs, stopLockTimeMs);
        synchronized (m_Lock)
        {
            if (lockInfo.getStartTimeMs() <= System.currentTimeMillis())
            {
                m_ActiveLocks.add(lockInfo);
                callActiveWakeLockAddedListners();
            }
            else
            {
                m_ScheduledLocks.add(lockInfo);
            }
        }
    }
public void addWakeLock ( final WakeLock lock , final long startLockTimeMs , final long stopLockTimeMs ) { final BeagleBoneBlackLockInfo lockInfo = new BeagleBoneBlackLockInfo ( lock , startLockTimeMs , stopLockTimeMs ) ; synchronized ( m_Lock ) { if ( lockInfo . getStartTimeMs ( ) <= System . currentTimeMillis ( ) ) { m_ActiveLocks . add ( lockInfo ) ; callActiveWakeLockAddedListners ( ) ; } else { m_ScheduledLocks . add ( lockInfo ) ; } } }
Adds the specified wake lock.
Adds the specified wake lock .
// Wake locks are scheduled based on system or wall clock time, so System.currentTimeMillis() must be used // to determine when locks are activated or scheduled