-
Notifications
You must be signed in to change notification settings - Fork 40
The last CTL patch :) #1524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
The last CTL patch :) #1524
Conversation
629b379
to
2706166
Compare
Split between initialize and post-initialize function is necessary for properly handling CTL defaults.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after all, this is super huge PR - I'd split this somehow, if easily done...
defaults changes global state, so using forks will isolate tests
|
||
UMF's experimental CTL API is showcased in the [CTL example](examples/ctl/ctl.c), | ||
which explores provider and pool statistics, and in the [custom CTL example](examples/ctl/custom_ctl.c), which wires CTL support into a bespoke memory | ||
provider. These examples rely on experimental headers whose interfaces may |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whose
refer to people -> perhaps: ... experimental headers which may change ...
sizeof(alloc_count), name, i); | ||
} | ||
|
||
Ensure that the types of wildcard arguments match the expected node types. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise what? you get an error, a crash, ...?
sizeof(capacity)); | ||
|
||
Every subsequently created disjoint pool will use ``16`` as its starting | ||
capacity overriding it's creation parameters. Defaults are keyed by the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's
-> its
|
||
UMF_CONF="umf.logger.output=stdout;umf.logger.level=0" | ||
|
||
CTL options available through environment variables are limited—you can only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
limited—you
misspell
Within each subsystem the path continues with an addressing scheme followed by | ||
the module or leaf of interest. | ||
|
||
Reading this reference |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider renaming this section to Reading below sections
or dunno, something else ;d
:type:`umf_memory_provider_handle_t` argument to reach a specific provider. | ||
Providers can also be addressed by name through ``umf.provider.by_name.{provider}``; | ||
append ``.{index}`` to address specific provider when multiple providers share the same label. | ||
Defaults for future providers reside under ``umf.provider.default.{provider}`` and track the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what you meant by ... and track the name ...
=========== | ||
|
||
A ``{}`` in the path acts as a wildcard and is replaced with successive | ||
arguments of ``umfCtlGet``, ``umfCtlSet`` or ``umfCtlExec``. Wildcards can |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set and get are explained, but umfCtlExec
wasn't
target_include_directories(${ EXAMPLE_NAME} PRIVATE ${ LIBUMF_INCLUDE_DIRS}) | ||
target_link_directories( | ||
${ | ||
EXAMPLE_NAME} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's a weird formatting - can you make it like ${EXAMPLE_NAME}
...?
// fix below, as well pls
No description provided.