Skip to content

Commit 17d5a3e

Browse files
nwf-msrmjp41
authored andcommitted
Update README.md PAL discussion w/ sprinkled "static"
1 parent 1e8d0bd commit 17d5a3e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,20 +160,20 @@ your system.
160160
The PAL must implement the following methods:
161161

162162
```c++
163-
[[noreturn]] void error(const char* const str) noexcept;
163+
[[noreturn]] static void error(const char* const str) noexcept;
164164
```
165165
Report a fatal error and exit.
166166
167167
```c++
168-
void notify_not_using(void* p, size_t size) noexcept;
168+
static void notify_not_using(void* p, size_t size) noexcept;
169169
```
170170
Notify the system that the range of memory from `p` to `p` + `size` is no
171171
longer in use, allowing the underlying physical pages to recycled for other
172172
purposes.
173173

174174
```c++
175175
template<ZeroMem zero_mem>
176-
void notify_using(void* p, size_t size) noexcept;
176+
static void notify_using(void* p, size_t size) noexcept;
177177
```
178178
Notify the system that the range of memory from `p` to `p` + `size` is now in use.
179179
On systems that lazily provide physical memory to virtual mappings, this
@@ -183,7 +183,7 @@ responsible for ensuring that the newly requested memory is full of zeros.
183183
184184
```c++
185185
template<bool page_aligned = false>
186-
void zero(void* p, size_t size) noexcept;
186+
static void zero(void* p, size_t size) noexcept;
187187
```
188188
Zero the range of memory from `p` to `p` + `size`.
189189
This may be a simple `memset` call, but the `page_aligned` template parameter
@@ -194,8 +194,8 @@ pages, rather than zeroing them synchronously in this call
194194

195195
```c++
196196
template<bool committed>
197-
void* reserve_aligned(size_t size) noexcept;
198-
std::pair<void*, size_t> reserve_at_least(size_t size) noexcept;
197+
static void* reserve_aligned(size_t size) noexcept;
198+
static std::pair<void*, size_t> reserve_at_least(size_t size) noexcept;
199199
```
200200
Only one of these needs to be implemented, depending on whether the underlying
201201
system can provide strongly aligned memory regions.

0 commit comments

Comments
 (0)