/* -*- C++ -*- Shared pointer based jobs that are managed by the caller in ThreadWeaver. SPDX-FileCopyrightText: 2005-2013 Mirko Boehm SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef MANAGEDJOBPOINTER_H #define MANAGEDJOBPOINTER_H #include #include "jobinterface.h" namespace ThreadWeaver { inline void doNotDeleteJob(JobInterface *) { } template class ManagedJobPointer : public QSharedPointer { public: ManagedJobPointer(T *job) : QSharedPointer(job, doNotDeleteJob) { } }; } #endif // MANAGEDJOBPOINTER_H