Include the header "Dinkum/threads/exceptions" to define classes
used for reporting exceptions during thread operations.
namespace Dinkum {
namespace threads {
class lock_error;
class thread_resource_error;
} // namespace threads
} // namespace Dinkum
class lock_error
: public std::runtime_error
{
public:
lock_error();
};
The class describes an exception thrown to indicate that an attempted operation involving a lock failed because the lock was not in a required state.
class thread_resource_error
: public std::runtime_error
{
public:
thread_resource_error();
};
The class describes an exception thrown to indicate that an attempted operation failed because a required resource other than memory was not available.
See also the Table of Contents and the Index.
Copyright (c) by P.J. Plauger. All rights reserved.