+
Point of view
LOOP_ITEM
class SIMPLE_BACKGROUND_JOB
Summary
Overview
creation features
exported features
  • done: BOOLEAN
    done returns True when the job is finished.
  • continue
    Continue to do the job The work to do has to be small work and non blocking, it will continue on next call
  • restart
    Configure the job like the initial state.
set_work (t: FUNCTION[TUPLE, BOOLEAN], tr: PROCEDURE[TUPLE], prio: INTEGER_32)
effective procedure
t has to return True while continue
done: BOOLEAN
writable attribute
done returns True when the job is finished.
continue
effective procedure
Continue to do the job The work to do has to be small work and non blocking, it will continue on next call
restart
effective procedure
Configure the job like the initial state.
prepare (events: EVENTS_SET)
effective procedure
use ready to descibe condition that make this job ready to continue.
is_ready (events: EVENTS_SET): BOOLEAN
effective function
check if this job is ready to continue his work
priority: INTEGER_32
writable attribute
Never change priority after job inserted in loop_item.
infix "<" (other: JOB): BOOLEAN
effective function