diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-05-31 18:02:52 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-05-31 18:02:52 (GMT) |
commit | c21e21640a049bcda5bef690a272a8cb1483bcc9 (patch) | |
tree | 44f15dde0d36ee5ac57f576bbc9e6e967b9be499 /src/threadpool.h | |
parent | a54f69806ff14035cc057325a4decb3d21cc31b1 (diff) | |
download | Doxygen-c21e21640a049bcda5bef690a272a8cb1483bcc9.zip Doxygen-c21e21640a049bcda5bef690a272a8cb1483bcc9.tar.gz Doxygen-c21e21640a049bcda5bef690a272a8cb1483bcc9.tar.bz2 |
Added copyright header to threadpool.h
Diffstat (limited to 'src/threadpool.h')
-rw-r--r-- | src/threadpool.h | 16 |
1 files changed, 16 insertions, 0 deletions
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<void> can store a packaged_task<R>: std::deque< std::packaged_task<void()> > m_work; |