Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
src
core
lib
iomgr
error_internal.h
Go to the documentation of this file.
1
/*
2
*
3
* Copyright 2016 gRPC authors.
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
*/
18
19
#ifndef GRPC_CORE_LIB_IOMGR_ERROR_INTERNAL_H
20
#define GRPC_CORE_LIB_IOMGR_ERROR_INTERNAL_H
21
22
#include <
grpc/support/port_platform.h
>
23
24
#include <inttypes.h>
25
#include <stdbool.h>
// TODO(unknown): , do we need this?
26
27
#include <
grpc/support/sync.h
>
28
29
#include "
src/core/lib/iomgr/error.h
"
30
31
#ifndef GRPC_ERROR_IS_ABSEIL_STATUS
32
33
typedef
struct
grpc_linked_error
grpc_linked_error
;
34
35
struct
grpc_linked_error
{
36
grpc_error_handle
err
;
37
uint8_t
next
;
38
};
39
40
// c core representation of an error. See error.h for high level description of
41
// this object.
42
struct
grpc_error
{
43
// All atomics in grpc_error must be stored in this nested struct. The rest of
44
// the object is memcpy-ed in bulk in copy_and_unref.
45
struct
atomics
{
46
gpr_refcount
refs
;
47
gpr_atm
error_string
;
48
}
atomics
;
49
// These arrays index into dynamic arena at the bottom of the struct.
50
// UINT8_MAX is used as a sentinel value.
51
uint8_t
ints
[
GRPC_ERROR_INT_MAX
];
52
uint8_t
strs
[
GRPC_ERROR_STR_MAX
];
53
uint8_t
times
[
GRPC_ERROR_TIME_MAX
];
54
// The child errors are stored in the arena, but are effectively a linked list
55
// structure, since they are contained within grpc_linked_error objects.
56
uint8_t
first_err
;
57
uint8_t
last_err
;
58
// The arena is dynamically reallocated with a grow factor of 1.5.
59
uint8_t
arena_size
;
60
uint8_t
arena_capacity
;
61
intptr_t
arena
[0];
62
};
63
64
#endif // GRPC_ERROR_IS_ABSEIL_STATUS
65
66
#endif
/* GRPC_CORE_LIB_IOMGR_ERROR_INTERNAL_H */
grpc_error::atomics::error_string
gpr_atm error_string
Definition:
error_internal.h:47
grpc_error::atomics::refs
gpr_refcount refs
Definition:
error_internal.h:46
GRPC_ERROR_STR_MAX
@ GRPC_ERROR_STR_MAX
Must always be last.
Definition:
error.h:137
grpc_linked_error
Definition:
error_internal.h:35
grpc_linked_error::next
uint8_t next
Definition:
error_internal.h:37
grpc_linked_error::err
grpc_error_handle err
Definition:
error_internal.h:36
uint8_t
unsigned char uint8_t
Definition:
stdint-msvc2008.h:78
gpr_refcount
Definition:
impl/codegen/sync_generic.h:39
grpc_error::last_err
uint8_t last_err
Definition:
error_internal.h:57
grpc_error::ints
uint8_t ints[GRPC_ERROR_INT_MAX]
Definition:
error_internal.h:51
grpc_error::first_err
uint8_t first_err
Definition:
error_internal.h:56
intptr_t
_W64 signed int intptr_t
Definition:
stdint-msvc2008.h:118
error.h
grpc_error::arena
intptr_t arena[0]
Definition:
error_internal.h:61
GRPC_ERROR_INT_MAX
@ GRPC_ERROR_INT_MAX
Must always be last.
Definition:
error.h:101
gpr_atm
intptr_t gpr_atm
Definition:
impl/codegen/atm_gcc_atomic.h:32
grpc_error::atomics
Definition:
error_internal.h:45
grpc_error::atomics
struct grpc_error::atomics atomics
grpc_error::arena_capacity
uint8_t arena_capacity
Definition:
error_internal.h:60
GRPC_ERROR_TIME_MAX
@ GRPC_ERROR_TIME_MAX
Must always be last.
Definition:
error.h:145
grpc_error::strs
uint8_t strs[GRPC_ERROR_STR_MAX]
Definition:
error_internal.h:52
grpc_error::arena_size
uint8_t arena_size
Definition:
error_internal.h:59
grpc_error::times
uint8_t times[GRPC_ERROR_TIME_MAX]
Definition:
error_internal.h:53
grpc_error
Definition:
error_internal.h:42
sync.h
port_platform.h
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:15