From c21e21640a049bcda5bef690a272a8cb1483bcc9 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 31 May 2020 20:02:52 +0200 Subject: Added copyright header to threadpool.h --- src/threadpool.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/threadpool.h b/src/threadpool.h index 3acba4e..5b3f823 100644 --- a/src/threadpool.h +++ b/src/threadpool.h @@ -1,3 +1,18 @@ +/****************************************************************************** + * + * Copyright (C) 1997-2020 by Dimitri van Heesch. + * + * Permission to use, copy, modify, and distribute this software and its + * documentation under the terms of the GNU General Public License is hereby + * granted. No representations are made about the suitability of this software + * for any purpose. It is provided "as is" without express or implied warranty. + * See the GNU General Public License for more details. + * + * Documents produced by Doxygen are derivative works derived from the + * input used in their production; they are not affected by this license. + * + */ + #ifndef THREADPOOL_H #define THREADPOOL_H @@ -105,6 +120,7 @@ class ThreadPool // thread-safe triggered queue of tasks: std::mutex m_mutex; std::condition_variable m_cond; + // note that a packaged_task can store a packaged_task: std::deque< std::packaged_task > m_work; -- cgit v0.12