1/****************************************************************************
2** Meta object code from reading C++ file 'qthreadpool.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.0)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include <memory>
10#include "thread/qthreadpool.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qthreadpool.h' doesn't include <QObject>."
15#elif Q_MOC_OUTPUT_REVISION != 68
16#error "This file was generated using the moc from 6.0.0. It"
17#error "cannot be used with the include files from this version of Qt."
18#error "(The moc has changed too much.)"
19#endif
20
21QT_BEGIN_MOC_NAMESPACE
22QT_WARNING_PUSH
23QT_WARNING_DISABLE_DEPRECATED
24struct qt_meta_stringdata_QThreadPool_t {
25 const uint offsetsAndSize[10];
26 char stringdata0[69];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QThreadPool_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QThreadPool_t qt_meta_stringdata_QThreadPool = {
31 {
32QT_MOC_LITERAL(0, 11), // "QThreadPool"
33QT_MOC_LITERAL(12, 13), // "expiryTimeout"
34QT_MOC_LITERAL(26, 14), // "maxThreadCount"
35QT_MOC_LITERAL(41, 17), // "activeThreadCount"
36QT_MOC_LITERAL(59, 9) // "stackSize"
37
38 },
39 "QThreadPool\0expiryTimeout\0maxThreadCount\0"
40 "activeThreadCount\0stackSize"
41};
42#undef QT_MOC_LITERAL
43
44static const uint qt_meta_data_QThreadPool[] = {
45
46 // content:
47 9, // revision
48 0, // classname
49 0, 0, // classinfo
50 0, 0, // methods
51 4, 14, // properties
52 0, 0, // enums/sets
53 0, 0, // constructors
54 0, // flags
55 0, // signalCount
56
57 // properties: name, type, flags
58 1, QMetaType::Int, 0x00015103, uint(-1), 0,
59 2, QMetaType::Int, 0x00015103, uint(-1), 0,
60 3, QMetaType::Int, 0x00015001, uint(-1), 0,
61 4, QMetaType::UInt, 0x00015103, uint(-1), 0,
62
63 0 // eod
64};
65
66void QThreadPool::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
67{
68
69#ifndef QT_NO_PROPERTIES
70 if (_c == QMetaObject::ReadProperty) {
71 Q_ASSERT(staticMetaObject.cast(_o));
72 auto *_t = static_cast<QThreadPool *>(_o);
73 Q_UNUSED(_t)
74 void *_v = _a[0];
75 switch (_id) {
76 case 0: *reinterpret_cast< int*>(_v) = _t->expiryTimeout(); break;
77 case 1: *reinterpret_cast< int*>(_v) = _t->maxThreadCount(); break;
78 case 2: *reinterpret_cast< int*>(_v) = _t->activeThreadCount(); break;
79 case 3: *reinterpret_cast< uint*>(_v) = _t->stackSize(); break;
80 default: break;
81 }
82 } else if (_c == QMetaObject::WriteProperty) {
83 Q_ASSERT(staticMetaObject.cast(_o));
84 auto *_t = static_cast<QThreadPool *>(_o);
85 Q_UNUSED(_t)
86 void *_v = _a[0];
87 switch (_id) {
88 case 0: _t->setExpiryTimeout(*reinterpret_cast< int*>(_v)); break;
89 case 1: _t->setMaxThreadCount(*reinterpret_cast< int*>(_v)); break;
90 case 3: _t->setStackSize(*reinterpret_cast< uint*>(_v)); break;
91 default: break;
92 }
93 } else if (_c == QMetaObject::ResetProperty) {
94 } else if (_c == QMetaObject::BindableProperty) {
95 }
96#endif // QT_NO_PROPERTIES
97 Q_UNUSED(_o);
98 Q_UNUSED(_id);
99 Q_UNUSED(_c);
100 Q_UNUSED(_a);
101}
102
103const QMetaObject QThreadPool::staticMetaObject = { {
104 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
105 qt_meta_stringdata_QThreadPool.offsetsAndSize,
106 qt_meta_data_QThreadPool,
107 qt_static_metacall,
108 nullptr,
109qt_incomplete_metaTypeArray<qt_meta_stringdata_QThreadPool_t
110, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<uint, std::true_type>
111
112
113
114>,
115 nullptr
116} };
117
118
119const QMetaObject *QThreadPool::metaObject() const
120{
121 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
122}
123
124void *QThreadPool::qt_metacast(const char *_clname)
125{
126 if (!_clname) return nullptr;
127 if (!strcmp(_clname, qt_meta_stringdata_QThreadPool.stringdata0))
128 return static_cast<void*>(this);
129 return QObject::qt_metacast(_clname);
130}
131
132int QThreadPool::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
133{
134 _id = QObject::qt_metacall(_c, _id, _a);
135 if (_id < 0)
136 return _id;
137
138#ifndef QT_NO_PROPERTIES
139 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
140 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
141 || _c == QMetaObject::RegisterPropertyMetaType) {
142 qt_static_metacall(this, _c, _id, _a);
143 _id -= 4;
144 }
145#endif // QT_NO_PROPERTIES
146 return _id;
147}
148QT_WARNING_POP
149QT_END_MOC_NAMESPACE
150