]> git.puffer.fish Git - mirror/frr.git/commitdiff
doc: clarify independence of THREAD_READ and _WRITE 7099/head
authorMark Stapp <mjs@voltanet.io>
Mon, 14 Sep 2020 15:01:44 +0000 (11:01 -0400)
committerMark Stapp <mjs@voltanet.io>
Mon, 14 Sep 2020 15:01:44 +0000 (11:01 -0400)
Make it clearer that the READ and WRITE tasks/events are
independent in the lib/thread apis.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
doc/developer/process-architecture.rst

index 6e0eb68188ae69dbf812a34f82e5c8890b3614f0..6a028d000063f93e598320ffedb37282c18253ed 100644 (file)
@@ -94,7 +94,9 @@ irrelevant for the time being) for the specific type. For example, to add a
    thread_add_read(struct thread_master *master, int (*handler)(struct thread *), void *arg, int fd, struct thread **ref);
 
 The ``struct thread`` is then created and added to the appropriate internal
-datastructure within the ``threadmaster``.
+datastructure within the ``threadmaster``. Note that the ``READ`` and
+``WRITE`` tasks are independent - a ``READ`` task only tests for
+readability, for example.
 
 The Event Loop
 ^^^^^^^^^^^^^^