Qt 4.8
Public Functions | Public Variables | List of all members
QGLContextGroupList Struct Reference

Public Functions

void append (QGLContextGroup *group)
 
void remove (QGLContextGroup *group)
 

Public Variables

QList< QGLContextGroup * > m_list
 
QMutex m_mutex
 

Detailed Description

Definition at line 1658 of file qgl.cpp.

Functions

◆ append()

void QGLContextGroupList::append ( QGLContextGroup group)
inline

Definition at line 1659 of file qgl.cpp.

1659  {
1660  QMutexLocker locker(&m_mutex);
1661  m_list.append(group);
1662  }
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
QList< QGLContextGroup * > m_list
Definition: qgl.cpp:1669

◆ remove()

void QGLContextGroupList::remove ( QGLContextGroup group)
inline

Definition at line 1664 of file qgl.cpp.

1664  {
1665  QMutexLocker locker(&m_mutex);
1666  m_list.removeOne(group);
1667  }
bool removeOne(const T &t)
Removes the first occurrence of value in the list and returns true on success; otherwise returns fals...
Definition: qlist.h:796
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
QList< QGLContextGroup * > m_list
Definition: qgl.cpp:1669

Properties

◆ m_list

QList<QGLContextGroup *> QGLContextGroupList::m_list

Definition at line 1669 of file qgl.cpp.

◆ m_mutex

QMutex QGLContextGroupList::m_mutex

Definition at line 1670 of file qgl.cpp.


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