From: Remi Gacogne Date: Fri, 7 Oct 2022 15:45:57 +0000 (+0200) Subject: dnsdist: 'newThread()' and co were actually introduced in 1.8 X-Git-Tag: dnsdist-1.8.0-rc1~284^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12071%2Fhead;p=thirdparty%2Fpdns.git dnsdist: 'newThread()' and co were actually introduced in 1.8 And not in 1.7.0 as the documentation was stating. --- diff --git a/pdns/dnsdistdist/docs/reference/config.rst b/pdns/dnsdistdist/docs/reference/config.rst index 767604da95..34cc7caa4d 100644 --- a/pdns/dnsdistdist/docs/reference/config.rst +++ b/pdns/dnsdistdist/docs/reference/config.rst @@ -1690,13 +1690,13 @@ Other functions .. function:: threadmessage(cmd, dict) - .. versionadded:: 1.7.0 + .. versionadded:: 1.8.0 This function, if it exists, is called when a separate thread (made with :func:`newThread`) calls :func:`submitToMainThread`. .. function:: newThread(code) - .. versionadded:: 1.7.0 + .. versionadded:: 1.8.0 Spawns a separate thread running the supplied code. Code is supplied as a string, not as a function object. @@ -1704,7 +1704,7 @@ Other functions .. function:: submitToMainThread(cmd, dict) - .. versionadded:: 1.7.0 + .. versionadded:: 1.8.0 Must be called from a separate thread (made with :func:`newThread`), submits data to the main thread by calling :func:`threadmessage` in it. If no ``threadmessage`` receiver is present in the main thread, ``submitToMainThread`` logs an error but returns normally.