diff options
author | Thomas Jarosch <tomj@simonv.com> | 2015-01-02 18:41:30 +0100 |
---|---|---|
committer | Thomas Jarosch <tomj@simonv.com> | 2015-01-02 18:51:15 +0100 |
commit | 66df5f3891779f8d55dd5afba1db466cea2cc2e9 (patch) | |
tree | 45d076287808f91ca434e27c1dac4066b3c48e73 /firmware/target | |
parent | 726537508737351d028c6730d30d9ec38fa34e4e (diff) | |
download | rockbox-66df5f3891779f8d55dd5afba1db466cea2cc2e9.tar.gz rockbox-66df5f3891779f8d55dd5afba1db466cea2cc2e9.zip |
Improve core_alloc() / buflib_alloc() documentation
Document the fact that buffers are movable by default.
Care must be taken to not pass them to functions that yield().
Also clarify other things:
- Passing NULL as "ops" to buflib_alloc_ex() causes
buffers to be movable by default (but not shrinkable).
- If you want shrinkable buffers during compaction,
you have to provide a shrink callback.
- To disable buffer movement, you have to pass NULL
for the move_callback inside the callback structure.
- The concept of default callbacks was removed
long ago, remove the only reference of it.
Change-Id: I3bf0ea6b08b507d80a19f3c2c835aca32b3f7800
Diffstat (limited to 'firmware/target')
0 files changed, 0 insertions, 0 deletions