public boolean markActive ( ) { if ( TaskSlotState . ALLOCATED == state || TaskSlotState . ACTIVE == state ) { state = TaskSlotState . ACTIVE ; return true ; } else { return false ; } }
Mark this slot as active . A slot can only be marked active if it s in state allocated .