Qt 4.8
Classes | Functions
qwaitcondition_unix.cpp File Reference
#include "qplatformdefs.h"
#include "qwaitcondition.h"
#include "qmutex.h"
#include "qreadwritelock.h"
#include "qatomic.h"
#include "qstring.h"
#include "qmutex_p.h"
#include "qreadwritelock_p.h"
#include <errno.h>

Go to the source code of this file.

Classes

class  QWaitConditionPrivate
 

Functions

static void report_error (int code, const char *where, const char *what)
 

Function Documentation

◆ report_error()

static void report_error ( int  code,
const char *  where,
const char *  what 
)
static

Definition at line 58 of file qwaitcondition_unix.cpp.

Referenced by QMutexPrivate::QMutexPrivate(), QWaitCondition::QWaitCondition(), QWaitCondition::wait(), QWaitConditionPrivate::wait(), QWaitCondition::wakeAll(), QWaitCondition::wakeOne(), QMutexPrivate::~QMutexPrivate(), and QWaitCondition::~QWaitCondition().

59 {
60  if (code != 0)
61  qWarning("%s: %s failure: %s", where, what, qPrintable(qt_error_string(code)));
62 }
QString qt_error_string(int errorCode)
Definition: qglobal.cpp:2600
Q_CORE_EXPORT void qWarning(const char *,...)
#define qPrintable(string)
Definition: qglobal.h:1750