12#include <qtcore_tracepoints_p.h>
276 :
t(
type), m_reserved(0),
339{
return new QEvent(*
this); }
424struct QBasicAtomicBitField {
426 BitsPerInt = std::numeric_limits<uint>::digits,
427 NumInts = (N + BitsPerInt - 1) / BitsPerInt,
433 QBasicAtomicInteger<uint>
next;
434 QBasicAtomicInteger<uint>
data[NumInts];
436 constexpr QBasicAtomicBitField() =
default;
438 bool allocateSpecific(
int which)
noexcept
440 QBasicAtomicInteger<uint> &
entry =
data[which / BitsPerInt];
442 const uint bit = 1U << (which % BitsPerInt);
445 return (
entry.fetchAndOrRelaxed(bit) & bit) == 0;
455 int allocateNext() noexcept
463 for (
uint i =
next.loadRelaxed();
i < NumBits; ++
i) {
464 if (allocateSpecific(
i)) {
466 const uint oldNext =
next.loadRelaxed();
467 next.testAndSetRelaxed(oldNext,
qMax(
i + 1, oldNext));
648 :
QEvent(
QEvent::DeferredDelete), m_loopLevel(loopLevel), m_scopeLevel(scopeLevel)
655#include "moc_qcoreevent.cpp"
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,...)