summaryrefslogtreecommitdiff
path: root/firmware/include/core_alloc.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2023-01-14 18:20:59 +0000
committerAidan MacDonald <amachronic@protonmail.com>2023-01-15 11:06:27 +0000
commit800bc000a08b37e22d2b36d32fd448624712a881 (patch)
tree87149cae9acb83db4a98a873b81515a99200d790 /firmware/include/core_alloc.h
parent92565e9246f3a47b90fea4a436ecfd8e7a1198b8 (diff)
downloadrockbox-800bc000a08b37e22d2b36d32fd448624712a881.tar.gz
rockbox-800bc000a08b37e22d2b36d32fd448624712a881.zip
buflib: Add pinned get/put data functions
These are more efficient than separate pin/unpin calls because pin count increment and decrement can be done cheaply when the data pointer is known. Secondly, pinned access can be made safe against preemption by hardware interrupts or other CPU cores; buflib_get_data() can't. This makes it more useful under different threading models and for SMP targets; both of which are not particularly relevant to Rockbox now, but might be in the future. Change-Id: I09284251b83bbbc59ef88a494c8fda26a7f7ef26
Diffstat (limited to 'firmware/include/core_alloc.h')
0 files changed, 0 insertions, 0 deletions