On this page

QtTaskTree::QStartedBarrier Class

class QtTaskTree::QStartedBarrier

A started QBarrier with a given limit. More...

Header: #include <qbarriertask.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS TaskTree)
target_link_libraries(mytarget PRIVATE Qt6::TaskTree)
qmake: QT += tasktree
Since: 6.11
Inherits: QtTaskTree::QBarrier
Status: Preliminary

This class is under development and is subject to change.

Note: All functions in this class are reentrant.

Public Functions

QStartedBarrier(QObject *parent)
QStartedBarrier(qsizetype limit, QObject *parent = nullptr)

Reimplemented Protected Functions

virtual bool event(QEvent *event) override

Detailed Description

QStartedBarrier is a QBarrier with a given limit, already started when constucted.

Member Function Documentation

[explicit] QStartedBarrier::QStartedBarrier(QObject *parent)

Creates started QBarrier with a given parent and the default limit of 1.

[explicit] QStartedBarrier::QStartedBarrier(qsizetype limit, QObject *parent = nullptr)

Creates started QBarrier with a given limit and parent.

[override virtual protected] bool QStartedBarrier::event(QEvent *event)

Reimplements: QBarrier::event(QEvent *event).

Related Non-Members

[alias] BarrierKickerGetter

Type alias for the function taking a QStoredBarrier and returning ExecutableItem, i.e. std::function<ExecutableItem(const QStoredBarrier &)>, to be used inside When constructor.

[alias] QStoredBarrier

Type alias for the QtTaskTree::Storage<QStartedBarrier>, to be used inside recipes.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.