author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Thu, 19 Feb 2009 22:28:16 +0000 (23:28 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Thu, 19 Feb 2009 22:28:16 +0000 (23:28 +0100) | ||
commit | ba6497bdffb6a225eb6c86c8b8fa57a2520f0c5f | |
tree | 676fdad4e24391ba39e8ec20ade9c816a2ec1ebe | tree | snapshot |
parent | d456f193400c94d05eda022526a6d894eb23ea82 | commit | diff |
src/plugin.[ch]: Implement `plugin_dispatch_values_async'.
This function differs from `plugin_dispatch_values' in that it will add
the value_list_t to a queue rather than calling the write functions
right away. This as at least two advantages:
- The _async function will often return faster, since no file
operation is done.
- The ``read thread'' and the ``write thread'' are not the same
thread. This makes it much easier for plugins that provide both,
`read' and `write' callbacks.
This function differs from `plugin_dispatch_values' in that it will add
the value_list_t to a queue rather than calling the write functions
right away. This as at least two advantages:
- The _async function will often return faster, since no file
operation is done.
- The ``read thread'' and the ``write thread'' are not the same
thread. This makes it much easier for plugins that provide both,
`read' and `write' callbacks.
src/plugin.c | diff | blob | history | |
src/plugin.h | diff | blob | history |