Next: SOFTWARE-EVOLUTION-LIBRARY/VIEW, Previous: SOFTWARE-EVOLUTION-LIBRARY/UTILITY/RANGE, Up: Software Evolution Library Index [Contents][Index]
Process the object, including evaluate fitness, push new Jobs, and store interesting results
Evaluate the task
saving the result in the runner.
Process a single task
by applying some-task-pred
to the object
in task
.
note:
Since ‘task-save-result’ pushes results to a list, it’s possible for up to
n
results to be saved (where n
is the number of running threads), so ‘first’
should be used to retrieve one result. Additionally, due to differences in
timing, it’s possible that the result won’t match that of ‘some’, since ‘some’
promises to find the first while ‘some-task’ may return any element satisfying
‘some-task-pred’.
Class precedence list: task-runner, structure-object, slot-object, t
The state needed to run multi-threaded tasks and associated jobs.
Class precedence list: some-task, task, standard-object, slot-object, t
Slots:
pred
— initarg: :pred
; reader: software-evolution-library/utility/task:some-task-pred
; writer: (setf software-evolution-library/utility/task:some-task-pred)
Predicate used by ‘some’.
Task for applying ‘some’ in parallel.
The object
field is a list on whose elements some-task-pred
is applied.
Class precedence list: some-test-task, task, standard-object, slot-object, t
Slots:
pred
— initarg: :pred
; reader: software-evolution-library/utility/task:some-task-pred
; writer: (setf software-evolution-library/utility/task:some-task-pred)
Predicate used by ‘some’.
Task to apply predicate some-task-pred
to object
.
Class precedence list: task, standard-object, slot-object, t
Base class for all task classes.
Class precedence list: task-map, task, standard-object, slot-object, t
Task object used to map a function over a sequence using workers.
Bind *task-runner*
for worker threads
Run the body code as a one-off task, which can access task and runner by
name. The supplied names may be any available symbols. Returns the task-runner
object.
Create a task-runner
, using the specified task as the first job.
Create a task-runner
, using the specified task as the first job,
blocking until completion
Run function
with arguments
as a ‘simple-job’ ‘task-job’.
Return a job for the *jobs* stack. This is a function which, when called, returns the next task in the series.
Return a function which will spawn jobs for all of TASK’s objects.
Return the generating function for ‘some-task’.
Create new subtasks for each item in the list until either applying the
predicate some-task-pred
in task
succeeds or there are no more items in the
list.
Run function
over objects
using a ‘simple-job’ ‘task-job’.
Run func
over objects
using a ‘simple-job’ ‘task-job’.
Create a new worker thread.
Returns the number of jobs remaining.
Returns the number of running threads.
Save a result object.
Next: SOFTWARE-EVOLUTION-LIBRARY/VIEW, Previous: SOFTWARE-EVOLUTION-LIBRARY/UTILITY/RANGE, Up: Software Evolution Library Index [Contents][Index]