diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-21 17:19:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-21 17:19:04 +0000 |
commit | 310edf444908b09ea6d00c03baceb7925f3bb7a2 (patch) | |
tree | 7064577c7fa7a851e2e930beb606ea8237b0bbd2 /ml/dlib/dlib/threads/create_new_thread_extension.h | |
parent | Releasing debian version 1.44.3-2. (diff) | |
download | netdata-310edf444908b09ea6d00c03baceb7925f3bb7a2.tar.xz netdata-310edf444908b09ea6d00c03baceb7925f3bb7a2.zip |
Merging upstream version 1.45.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ml/dlib/dlib/threads/create_new_thread_extension.h')
-rw-r--r-- | ml/dlib/dlib/threads/create_new_thread_extension.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/ml/dlib/dlib/threads/create_new_thread_extension.h b/ml/dlib/dlib/threads/create_new_thread_extension.h deleted file mode 100644 index 8f419b6be..000000000 --- a/ml/dlib/dlib/threads/create_new_thread_extension.h +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (C) 2006 Davis E. King (davis@dlib.net) -// License: Boost Software License See LICENSE.txt for the full license. -#ifndef DLIB_CREATE_NEW_THREAD_EXTENSIOn_ -#define DLIB_CREATE_NEW_THREAD_EXTENSIOn_ - -#include "threads_kernel_abstract.h" -#include "create_new_thread_extension_abstract.h" -#include "../threads.h" - -namespace dlib -{ - -// ---------------------------------------------------------------------------------------- - - template < - typename T, - void (T::*funct)() - > - inline void dlib_create_new_thread_helper ( - void* obj - ) - { - T* o = static_cast<T*>(obj); - (o->*funct)(); - } - -// ---------------------------------------------------------------------------------------- - - template < - typename T, - void (T::*funct)() - > - inline bool create_new_thread ( - T& obj - ) - { - return create_new_thread(dlib_create_new_thread_helper<T,funct>,&obj); - } - -// ---------------------------------------------------------------------------------------- - -} - -#endif // DLIB_CREATE_NEW_THREAD_EXTENSIOn_ - - |