We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6de97e9 commit 387be04Copy full SHA for 387be04
libc/shared/rpc.h
@@ -85,11 +85,11 @@ template <bool Invert> struct Process {
85
RPC_INLINE Process &operator=(Process &&) = default;
86
RPC_INLINE ~Process() = default;
87
88
- uint32_t port_count = 0;
89
- uint32_t *inbox = nullptr;
90
- uint32_t *outbox = nullptr;
91
- Header *header = nullptr;
92
- Buffer *packet = nullptr;
+ const uint32_t port_count = 0;
+ const uint32_t *const inbox = nullptr;
+ uint32_t *const outbox = nullptr;
+ Header *const header = nullptr;
+ Buffer *const packet = nullptr;
93
94
static constexpr uint64_t NUM_BITS_IN_WORD = sizeof(uint32_t) * 8;
95
uint32_t lock[MAX_PORT_COUNT / NUM_BITS_IN_WORD] = {0};
0 commit comments