[Development] Is QtConcurrent's code generator still in use?

Sze Howe Koh szehowe.koh at gmail.com
Sun Nov 11 06:07:41 CET 2012


On 10 November 2012 18:34, Olivier Goffart <olivier at woboq.com> wrote:
> On Saturday 10 November 2012 10:09:42 Sze Howe Koh wrote:
>> I found a code generator in qttools/src/qtconcurrent/generaterun,
>> which is supposedly the tool for generating
>>     qtbase/src/concurrent/qtconcurrentrun.h
>>     qtbase/src/concurrent/qtconcurrentstoredfunctioncall.h
>>
>> However, the code generator seems to have fallen out of sync with its
>> targets. It produces lines like "#include
>> <QtCore/qtconcurrentrunbase.h>", which is reminiscent of the old Qt
>> 4.8 structure.
>>
>> Should it be updated, or is it no longer used?
>
> Hi,
>
> It seems like none of the people that have maintained QtConcurrent recently or
> applied or reviewed patch to those files, including me, knew about this tool.
> (My fault since there is a even comment in the files telling not to edit which
> I must have missed)
>
> There are a few commit even in the 4.x series that are not included in that
> generator.
>
>
> Anyway... First, the location: It should probably not have been in the qttools
> repository, but rather in the qtrepotools.
> And yes, it probably would make send to update the tool to take in account all
> the commits since at least the time the repository went public around Qt 4.5.

Thanks for the explanation. I've opened tickets for this:
https://bugreports.qt-project.org/browse/QTBUG-27940
https://bugreports.qt-project.org/browse/QTBUG-27941

I asked because I'm working on patches for Qt Concurrent now; I don't
know all the updates that the tool needs, but I'll patch it with my
changes.


Regards,
Sze-Howe



More information about the Development mailing list