diff options
| author | Vitaly Fanaskov <vitaly.fanaskov@qt.io> | 2020-02-26 15:22:40 +0100 |
|---|---|---|
| committer | Vitaly Fanaskov <vitaly.fanaskov@qt.io> | 2020-03-11 14:46:25 +0100 |
| commit | c977e74afd18afff8729070f631e6b7a3f2887f5 (patch) | |
| tree | 08be91368aaee6391e1fcb71f67f90708f7b9e7a /src/concurrent/qtconcurrentrun.cpp | |
| parent | 01bacdf7abb071198d843acdfb22ce1701766be8 (diff) | |
QtConcurrent::run: accept more then five function's arguments
[ChangeLog][Potentially Source-Incompatible Changes] QtConcurrent::run
has the following signatures: run(Function &&f, Args &&...args) and
run(QThreadPool *pool, Function &&f, Args &&...args). If f is a member
pointer, the first argument of args should be an object for which that
member is defined (or a reference, or a pointer to it). See the
documentation for more details.
Fixes: QTBUG-82383
Change-Id: I18f7fcfb2adbdd9f75b29c346bd3516304e32d31
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'src/concurrent/qtconcurrentrun.cpp')
| -rw-r--r-- | src/concurrent/qtconcurrentrun.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/concurrent/qtconcurrentrun.cpp b/src/concurrent/qtconcurrentrun.cpp index d9867e1f1a0..c5f2e113a26 100644 --- a/src/concurrent/qtconcurrentrun.cpp +++ b/src/concurrent/qtconcurrentrun.cpp @@ -112,6 +112,14 @@ Calling a lambda function is done like this: \snippet code/src_concurrent_qtconcurrentrun.cpp 6 + + Calling a function modifies an object passed by reference is done like this: + + \snippet code/src_concurrent_qtconcurrentrun.cpp 7 + + Using callable object is done like this: + + \snippet code/src_concurrent_qtconcurrentrun.cpp 8 */ /*! |
