always assign budget before placing
This commit is contained in:
parent
e647604e2a
commit
2bf39cbdc5
@ -108,8 +108,7 @@ void Worker::budget(double freq)
|
|||||||
{
|
{
|
||||||
Q_EMIT taskStarted();
|
Q_EMIT taskStarted();
|
||||||
try {
|
try {
|
||||||
ctx->target_freq = freq;
|
ctx->target_freq = freq;
|
||||||
assign_budget(ctx);
|
|
||||||
Q_EMIT budget_finish(true);
|
Q_EMIT budget_finish(true);
|
||||||
} catch (WorkerInterruptionRequested) {
|
} catch (WorkerInterruptionRequested) {
|
||||||
Q_EMIT taskCanceled();
|
Q_EMIT taskCanceled();
|
||||||
@ -121,6 +120,7 @@ void Worker::place(bool timing_driven)
|
|||||||
Q_EMIT taskStarted();
|
Q_EMIT taskStarted();
|
||||||
try {
|
try {
|
||||||
ctx->timing_driven = timing_driven;
|
ctx->timing_driven = timing_driven;
|
||||||
|
assign_budget(ctx);
|
||||||
Q_EMIT place_finished(ctx->place());
|
Q_EMIT place_finished(ctx->place());
|
||||||
} catch (WorkerInterruptionRequested) {
|
} catch (WorkerInterruptionRequested) {
|
||||||
Q_EMIT taskCanceled();
|
Q_EMIT taskCanceled();
|
||||||
|
Loading…
Reference in New Issue
Block a user