From a8d7bd3922c9325a99f32e6905469f9e1c8b217e Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 7 Oct 2022 17:45:57 +0200 Subject: [PATCH] dnsdist: 'newThread()' and co were actually introduced in 1.8 And not in 1.7.0 as the documentation was stating. --- pdns/dnsdistdist/docs/reference/config.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. -- 2.47.2