Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions  Download package

externC void en71TempMoveLock ( struct TASK_TYPE *  tcb,
SAPDB_UInt2  cnt,
SAPDB_Bool  setLock 
)

Set temporary lock to prevent moving task from one UKT to another.

Parameters:
tcb [in] Pointer to current Task Control structure
cnt [in] temporary lock count
setLock [in] true if the lock should be set, else false
Returns:
none

Definition at line 1733 of file ven71.c.

{
#undef  MF__
#define MF__ MOD__"en71TempMoveLock"
    if (setLock)
    {
        if ( tcb->moveLock.val == 0 )
            tcb->ukt->numOfMovableTasks--;

        tcb->moveLock.type.temporary += cnt;
    }
    else if ( tcb->moveLock.type.temporary != 0 )
    {
#if defined (CHECK_MOVELOCK_UNDERRUN)
        if (tcb->moveLock.type.temporary < cnt )
             vabort ( WRITE_CORE ) ;
#endif
        tcb->moveLock.type.temporary -= cnt;

        if ( tcb->moveLock.val == 0 )
            tcb->ukt->numOfMovableTasks++;
    }
}


Generated by  Doxygen 1.6.0   Back to index