Opened 4 years ago

Closed 3 years ago

#916 closed request (fixed)

recycle Scheduler after wait

Reported by: Peter Owned by: Peter
Priority: major Milestone: yat 0.17
Component: utility Version: trunk
Keywords: Cc:

Description

Currently the documentation says that the behaviour of calling ::submit() after ::wait() is undefined.

It would be useful, and not very difficult to implement, I suppose, if this could be changed so one could call submit and wait multiple times as it goes. It's possible to work around as it is now with dependencies and a class that takes care of the waiting, but it adds a lot of book keeping (ie cpu time).

Change History (4)

comment:1 Changed 3 years ago by Peter

In 3808:

Move the data member of the JobHandler? into its own data class,
JobHandlerData?, which is thread safe. This class is now owned by the
Scheduler and the JobHandler? has access via a pointer. This fixes #924
as the class is thread safe and since the sharing between Scheduler
and the JobHandler? class is now more complete also allow future
additions of the interface such as mentions in tickets:

refs #899, #910, #914 and #916.

comment:2 Changed 3 years ago by Peter

Owner: changed from Jari Häkkinen to Peter
Status: newaccepted

comment:3 Changed 3 years ago by Peter

In 3827:

refs #916. add test case when using Scheduler after calling wait().

comment:4 Changed 3 years ago by Peter

Resolution: fixed
Status: acceptedclosed

In 3828:

Make the Scheduler recyclable i.e. allow jobs to be submitted also after wait() or interrupt() has been called. closes #916

Note: See TracTickets for help on using tickets.