Qt 4.8
Static Public Functions | Static Private Attributes | List of all members
QEglContextTracker Class Reference

Static Public Functions

static void deref ()
 
static bool displayOpened ()
 
static void ref ()
 
static void setDisplayOpened ()
 

Static Private Attributes

static QBasicAtomicInt contexts = Q_BASIC_ATOMIC_INITIALIZER(0)
 
static QBasicAtomicInt displayOpen = Q_BASIC_ATOMIC_INITIALIZER(0)
 

Detailed Description

Definition at line 64 of file qegl.cpp.

Functions

◆ deref()

static void QEglContextTracker::deref ( )
inlinestatic

Definition at line 68 of file qegl.cpp.

Referenced by QEglContext::~QEglContext().

68  {
69  if (!contexts.deref()) {
70  eglTerminate(QEgl::display());
71  displayOpen = 0;
72  }
73  }
static QBasicAtomicInt displayOpen
Definition: qegl.cpp:79
Q_GUI_EXPORT EGLDisplay display()
Definition: qegl.cpp:589
static QBasicAtomicInt contexts
Definition: qegl.cpp:78

◆ displayOpened()

static bool QEglContextTracker::displayOpened ( )
inlinestatic

Definition at line 75 of file qegl.cpp.

Referenced by QEgl::display().

75 { return displayOpen; }
static QBasicAtomicInt displayOpen
Definition: qegl.cpp:79

◆ ref()

static void QEglContextTracker::ref ( )
inlinestatic

Definition at line 67 of file qegl.cpp.

Referenced by QEglContext::QEglContext().

67 { contexts.ref(); }
static QBasicAtomicInt contexts
Definition: qegl.cpp:78

◆ setDisplayOpened()

static void QEglContextTracker::setDisplayOpened ( )
inlinestatic

Definition at line 74 of file qegl.cpp.

Referenced by QEgl::display().

74 { displayOpen = 1; }
static QBasicAtomicInt displayOpen
Definition: qegl.cpp:79

Properties

◆ contexts

QBasicAtomicInt QEglContextTracker::contexts = Q_BASIC_ATOMIC_INITIALIZER(0)
staticprivate

Definition at line 78 of file qegl.cpp.

Referenced by deref(), and ref().

◆ displayOpen

QBasicAtomicInt QEglContextTracker::displayOpen = Q_BASIC_ATOMIC_INITIALIZER(0)
staticprivate

Definition at line 79 of file qegl.cpp.

Referenced by deref(), displayOpened(), and setDisplayOpened().


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