Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
#include "qpid/Exception.h"
#include "qpid/Msg.h"
#include <cerrno>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Defines | |
#define | QPID_POSIX_ERROR(ERRNO) qpid::Exception(QPID_MSG(qpid::sys::strError(ERRNO))) |
#define | QPID_POSIX_CHECK(RESULT) if ((RESULT) < 0) throw QPID_POSIX_ERROR((errno)) |
THROW QPID_POSIX_ERROR(errno) if RESULT is less than zero. | |
#define | QPID_POSIX_THROW_IF(ERRNO) do { int e=(ERRNO); if (e) throw QPID_POSIX_ERROR(e); } while(0) |
Throw a posix error if ERRNO is non-zero. | |
#define | QPID_POSIX_ASSERT_THROW_IF(ERRNO) do { int e=(ERRNO); if (e) { errno=e; ::perror(0); assert(0); } } while(0) |
Same as _THROW_IF in a release build, but abort a debug build. | |
#define | QPID_POSIX_ABORT_IF(ERRNO) if ((int) ERRNO) { errno=ERRNO; ::perror(0); abort(); } |
#define QPID_POSIX_ABORT_IF | ( | ERRNO | ) | if ((int) ERRNO) { errno=ERRNO; ::perror(0); abort(); } |
Definition at line 51 of file check.h.
Referenced by qpid::sys::Mutex::~Mutex(), qpid::sys::RWlock::~RWlock(), and qpid::sys::Condition::~Condition().
#define QPID_POSIX_ASSERT_THROW_IF | ( | ERRNO | ) | do { int e=(ERRNO); if (e) { errno=e; ::perror(0); assert(0); } } while(0) |
Same as _THROW_IF in a release build, but abort a debug build.
Definition at line 47 of file check.h.
Referenced by qpid::sys::PODMutex::lock(), qpid::sys::PODMutex::unlock(), qpid::sys::Mutex::Mutex(), qpid::sys::Mutex::lock(), qpid::sys::Mutex::unlock(), qpid::sys::RWlock::RWlock(), qpid::sys::RWlock::wlock(), qpid::sys::RWlock::rlock(), qpid::sys::RWlock::unlock(), qpid::sys::RWlock::trywlock(), qpid::sys::RWlock::tryrlock(), qpid::sys::Condition::Condition(), qpid::sys::Condition::wait(), qpid::sys::Condition::notify(), and qpid::sys::Condition::notifyAll().
#define QPID_POSIX_CHECK | ( | RESULT | ) | if ((RESULT) < 0) throw QPID_POSIX_ERROR((errno)) |
THROW QPID_POSIX_ERROR(errno) if RESULT is less than zero.
#define QPID_POSIX_ERROR | ( | ERRNO | ) | qpid::Exception(QPID_MSG(qpid::sys::strError(ERRNO))) |
Definition at line 33 of file check.h.
Referenced by qpid::sys::Condition::wait().