Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QV4::GCCriticalSection< ToBeMarked > Struct Template Reference

#include <qv4mm_p.h>

Collaboration diagram for QV4::GCCriticalSection< ToBeMarked >:

Public Member Functions

Q_NODISCARD_CTOR GCCriticalSection (QV4::ExecutionEngine *engine, ToBeMarked *toBeMarked=nullptr)
 ~GCCriticalSection ()

Detailed Description

template<typename ToBeMarked = void>
struct QV4::GCCriticalSection< ToBeMarked >

GCCriticalSection prevets the gc from running, until it is destructed. In its dtor, it runs a check whether we've reached the unmanaegd heap limit, and triggers a gc run if necessary. Lastly, it can optionally mark an object passed to it before runnig the gc.

Definition at line 469 of file qv4mm_p.h.

Constructor & Destructor Documentation

◆ GCCriticalSection()

template<typename ToBeMarked = void>
Q_NODISCARD_CTOR QV4::GCCriticalSection< ToBeMarked >::GCCriticalSection ( QV4::ExecutionEngine * engine,
ToBeMarked * toBeMarked = nullptr )
inline

Definition at line 472 of file qv4mm_p.h.

◆ ~GCCriticalSection()

template<typename ToBeMarked = void>
QV4::GCCriticalSection< ToBeMarked >::~GCCriticalSection ( )
inline

Definition at line 480 of file qv4mm_p.h.


The documentation for this struct was generated from the following file: