summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-08-23 20:12:01 -0700
committerVito Caputo <vcaputo@pengaru.com>2021-08-23 20:16:30 -0700
commitcaa8f4319a8e9ef096e03857f0f85b48c0930a5e (patch)
treeb604240a362ab2aa0ccc94987852f2996e10a5ca /example.c
parent22ea32f0f945509888a3d0d5167b5d4ed001a3d9 (diff)
thunk: deprecate thunk_dispatch_keep()
Enable callees to control lifecycle via return values in thunk_dispatch() instead. The thunk_dispatch_keep() function encuraged caller-determined lifecycles which really doesn't work in practice. Now if a thunk returns <= 0 it will be freed, negative values are expected to be used for propagating out fatal errors. A positive value (conventionally will just be 1) will bypass the free, which is expected to be used in thunk reuse situations like iterators.
Diffstat (limited to 'example.c')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved