summaryrefslogtreecommitdiff
path: root/src/pulp.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-05-16 18:44:32 -0700
committerVito Caputo <vcaputo@pengaru.com>2018-05-16 18:44:32 -0700
commit54465a2679ca6a04a6ecb0ff58f2d519bf7ab9bc (patch)
tree5bb033b0be103318892b0bd7b0af9f086724b941 /src/pulp.c
parenta907debe635fdbae6db75b286da4ff83cd96b7da (diff)
libpulp: waking note in pulp_fiber_get_mailslot()
Diffstat (limited to 'src/pulp.c')
-rw-r--r--src/pulp.c7
1 files changed, 7 insertions, 0 deletions
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.
*/
© All Rights Reserved