mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-07 19:18:08 +00:00
This patch curates the API documentation to become suitable for the functional specificaton, which is partially generated from the header files.
32 lines
857 B
C++
32 lines
857 B
C++
/*
|
|
* \brief Support for blocking operations
|
|
* \author Norman Feske
|
|
* \date 2007-09-06
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2007-2013 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifndef _INCLUDE__BASE__BLOCKING_H_
|
|
#define _INCLUDE__BASE__BLOCKING_H_
|
|
|
|
#include <base/exception.h>
|
|
|
|
namespace Genode { class Blocking_canceled; }
|
|
|
|
/**
|
|
* Blocking-canceled exception
|
|
*
|
|
* Two operations may block a thread, waiting at a lock or performing an RPC
|
|
* call. Both operations may be canceled when the thread is destructed. In this
|
|
* case, the thread unblocks and throws an exception, and therefore, is able to
|
|
* clean up the thread state before exiting.
|
|
*/
|
|
class Genode::Blocking_canceled : public Exception { };
|
|
|
|
#endif /* _INCLUDE__BASE__BLOCKING_H_ */
|