From 54465a2679ca6a04a6ecb0ff58f2d519bf7ab9bc Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 16 May 2018 18:44:32 -0700 Subject: libpulp: waking note in pulp_fiber_get_mailslot() --- src/pulp.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/pulp.c b/src/pulp.c index 939d913..9cfdbc5 100644 --- a/src/pulp.c +++ b/src/pulp.c @@ -627,6 +627,13 @@ int pulp_fiber_get_mailslot(pulp_t *pulp, pulp_fiber_t *fiber, void ***res_mails * should just be sized to never experience blocking. */ + /* TODO: note that this also doesn't currently wake the fiber or otherwise + * enter the scheduler. + * I left that out, as I suspect it may be desirable to just add a separate + * wake function. The current use case of this library uses tiny sleeps + * more or less as yields so it's just not an issue yet. + */ + /* TODO: nothing is sanity checked at this time, I assume the supplied fiber * is valid and sleeping. */ -- cgit v1.2.3