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

externC void en71LongTermMoveLock ( struct TASK_TYPE *  tcb,
SAPDB_UInt2  lockType,
SAPDB_Bool  setLock 
)

Set long term lock to prevent moving task from one UKT to another.

Parameters:
tcb [in] Pointer to current Task Control structure
lockType [in] type of lock (e.g. client is not able to handle task moves)
setLock [in] true if the lock should be set, else false
Returns:
none

Definition at line 1763 of file ven71.c.

Referenced by en51Finish(), and en71Dispatcher().

{
#undef  MF__
#define MF__ MOD__"en71LongTermMoveLock"

    if (setLock)
    {
        if ( tcb->moveLock.val == 0 )
            tcb->ukt->numOfMovableTasks--;

        tcb->moveLock.type.longTerm |= lockType;
    }
    else if (( tcb->moveLock.type.longTerm & lockType ) != 0 )
    {
        tcb->moveLock.type.longTerm &= ~lockType;

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


Generated by  Doxygen 1.6.0   Back to index