diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-08-23 23:49:17 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-08-24 00:48:46 -0700 |
commit | 6150dcd14773517d5c0fff0fee7bc6fe6f75e086 (patch) | |
tree | 086cb81303863adaca76364c703bce4dab66953e /src/machid.c | |
parent | 34e7db0b48b952141b8fd392ff03dfc57124fc3d (diff) |
thunk_h: bump submodule for new lifecycle model
Udpate thunk usage througout to explicitly control thunk instance
lifecycles from calleees according to new model.
This enables discarding a bunch of the per-object dispatch
thunks, eliminates some thunk leaks, and I think generally makes
the code more expressive and clear about what's going on.
Keep in mind this is all experimental and and I'm not spending a
whole lot of time on this, it's mostly a toy and exploring some
different programming styles I'd never really consider for
production/real work.
Though it actually has some interesting properties, and produces
some surprisingly succinct and readable listings at times once
you have the cumbersome building blocks in place. Especially for
non-daemon programs where you can basically either log+ignore
errors or treat them as fatal, I think this programming style
might actually have its place.
Diffstat (limited to 'src/machid.c')
-rw-r--r-- | src/machid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machid.c b/src/machid.c index adc3ca0..5edd24a 100644 --- a/src/machid.c +++ b/src/machid.c @@ -51,7 +51,7 @@ THUNK_DEFINE_STATIC(have_machid, iou_t *, iou, char *, buf, size_t *, size, char if (!*res_ptr) return -ENOMEM; - return thunk_dispatch(closure); + return thunk_end(thunk_dispatch(closure)); } |