MythTV  master
Classes | Functions | Variables
mthread.cpp File Reference
#include <iostream>
#include <QStringList>
#include <QTimerEvent>
#include <QRunnable>
#include <QtGlobal>
#include <QSet>
#include "mythlogging.h"
#include "mythdbcon.h"
#include "mythtimer.h"
#include "mythdate.h"
#include "logging.h"
#include "mthread.h"
#include "mythdb.h"
Include dependency graph for mthread.cpp:

Go to the source code of this file.

Classes

class  DBPurgeHandler
 
class  MThreadInternal
 

Functions

bool is_current_thread (MThread *thread)
 Use this to determine if you are in the named thread. More...
 
bool is_current_thread (QThread *thread)
 Use this to determine if you are in the named thread. More...
 
bool is_current_thread (MThread &thread)
 Use this to determine if you are in the named thread. More...
 

Variables

static QMutex s_all_threads_lock
 
static QSet< MThread * > s_all_threads
 

Function Documentation

◆ is_current_thread() [1/3]

bool is_current_thread ( MThread thread)

◆ is_current_thread() [2/3]

bool is_current_thread ( QThread *  thread)

Use this to determine if you are in the named thread.

Definition at line 47 of file mthread.cpp.

◆ is_current_thread() [3/3]

bool is_current_thread ( MThread thread)

Use this to determine if you are in the named thread.

Definition at line 54 of file mthread.cpp.

Variable Documentation

◆ s_all_threads_lock

QMutex s_all_threads_lock
static

◆ s_all_threads

QSet<MThread*> s_all_threads
static