haiku/headers/private/support/JobPrivate.h
Axel Dörfler c80084b025 JobQueue: fixed incorrect requeuing.
* A dependent job was requeued even if it wasn't part of the queue
  before. The code relied on dependent jobs being already enqueued;
  but that cannot be guaranteed.
* If a job failed, its dependent jobs are now also set to failed, so
  that they won't be requeued at a later point.
* This caused some of the "Launching xxx failed: Operation not allowed"
  messages in the boot process. Those actually weren't harmless, and
  could mess up the natural job order.
2015-10-18 13:11:26 +02:00

52 lines
625 B
C++

/*
* Copyright 2015, Haiku, Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef _JOB_PRIVATE_H_
#define _JOB_PRIVATE_H_
#include <Job.h>
namespace BSupportKit {
class BJob::Private {
public:
Private(BJob& job)
:
fJob(job)
{
}
void SetTicketNumber(uint32 ticketNumber)
{
fJob._SetTicketNumber(ticketNumber);
}
void ClearTicketNumber()
{
fJob._ClearTicketNumber();
}
void SetState(BJobState state)
{
fJob.SetState(state);
}
void NotifyStateListeners()
{
fJob.NotifyStateListeners();
}
private:
BJob& fJob;
};
} // namespace BSupportKit
#endif // _JOB_PRIVATE_H_