12#include <qtcore_tracepoints_p.h>
269 :
t(
type), m_reserved(0),
332{
return new QEvent(*
this); }
417struct QBasicAtomicBitField {
419 BitsPerInt = std::numeric_limits<uint>::digits,
420 NumInts = (N + BitsPerInt - 1) / BitsPerInt,
429 constexpr QBasicAtomicBitField() =
default;
431 bool allocateSpecific(
int which)
noexcept
435 const uint bit = 1U << (which % BitsPerInt);
437 &&
entry.testAndSetRelaxed(old, old | bit);
447 int allocateNext() noexcept
455 for (
uint i =
next.loadRelaxed();
i < NumBits; ++
i) {
456 if (allocateSpecific(
i)) {
458 const uint oldNext =
next.loadRelaxed();
459 next.testAndSetRelaxed(oldNext,
qMax(
i + 1, oldNext));
647#include "moc_qcoreevent.cpp"
T loadRelaxed() const noexcept
static void removePostedEvent(QEvent *)
Removes event from the queue of posted events, and emits a warning message if appropriate.
static QCoreApplication * instance() noexcept
Returns a pointer to the application's QCoreApplication (or QGuiApplication/QApplication) instance.
static int registerEventType(int hint=-1) noexcept
Type
This enum type defines the valid event types in Qt.
QEvent(Type type)
Constructs an event object of type type.
virtual ~QEvent()
Destroys the event.
virtual QEvent * clone() const
Creates and returns an identical copy of this event.
QTimerEvent(int timerId)
Constructs a timer event object with the timer identifier set to timerId.
Combined button and popup list for selecting options.
static int registerEventTypeZeroBased(int id) noexcept
QBasicAtomicBitField< QEvent::MaxUser - QEvent::User+1 > UserEventTypeRegistry
static Q_CONSTINIT UserEventTypeRegistry userEventTypeRegistry
#define Q_IMPL_EVENT_COMMON(Class)
constexpr const T & qMax(const T &a, const T &b)
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
#define Q_TRACE_POINT(provider, tracepoint,...)