/usr/include/caf/exit_reason.hpp is in libcaf-dev 0.13.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
* | |___ / ___ \| _| Framework *
* \____/_/ \_|_| *
* *
* Copyright (C) 2011 - 2015 *
* Dominik Charousset <dominik.charousset (at) haw-hamburg.de> *
* *
* Distributed under the terms and conditions of the BSD 3-Clause License or *
* (at your option) under the terms and conditions of the Boost Software *
* License 1.0. See accompanying files LICENSE and LICENSE_ALTERNATIVE. *
* *
* If you did not receive a copy of the license files, see *
* http://opensource.org/licenses/BSD-3-Clause and *
* http://www.boost.org/LICENSE_1_0.txt. *
******************************************************************************/
#ifndef CAF_EXIT_REASON_HPP
#define CAF_EXIT_REASON_HPP
#include <cstdint>
namespace caf {
namespace exit_reason {
/**
* Indicates that the actor is still alive.
*/
static constexpr uint32_t not_exited = 0x00000;
/**
* Indicates that an actor finished execution.
*/
static constexpr uint32_t normal = 0x00001;
/**
* Indicates that an actor finished execution because of an unhandled exception.
*/
static constexpr uint32_t unhandled_exception = 0x00002;
/**
* Indicates that the actor received an unexpected synchronous reply message.
*/
static constexpr uint32_t unhandled_sync_failure = 0x00004;
/**
* Indicates that a synchronous message timed out.
*/
static constexpr uint32_t unhandled_sync_timeout = 0x00005;
/**
* Indicates that the exit reason for this actor is unknown, i.e.,
* the actor has been terminated and no longer exists.
*/
static constexpr uint32_t unknown = 0x00006;
/**
* Indicates that an actor pool unexpectedly ran out of workers.
*/
static constexpr uint32_t out_of_workers = 0x00007;
/**
* Indicates that the actor was forced to shutdown by a user-generated event.
*/
static constexpr uint32_t user_shutdown = 0x00010;
/**
* Indicates that an actor finishied execution because a connection
* to a remote link was closed unexpectedly.
*/
static constexpr uint32_t remote_link_unreachable = 0x00101;
/**
* Any user defined exit reason should have a value greater or
* equal to prevent collisions with default defined exit reasons.
*/
static constexpr uint32_t user_defined = 0x10000;
/**
* Returns a string representation of given exit reason.
*/
const char* as_string(uint32_t value);
} // namespace exit_reason
} // namespace caf
#endif // CAF_EXIT_REASON_HPP
|