|  | The Gaudi Framework
    v28r2
    | 
threadpool tutorial. More...
#include <stdlib.h>#include <iostream>#include <sstream>#include <boost/thread/mutex.hpp>#include <boost/bind.hpp>#include <boost/threadpool.hpp>
Go to the source code of this file.
| Classes | |
| class | CTest | 
| Functions | |
| void | print (string text) | 
| template<typename T > | |
| string | to_string (T const &value) | 
| void | task_1 () | 
| void | task_2 () | 
| void | task_3 () | 
| void | task_with_parameter (int value) | 
| bool | looped_task () | 
| int | task_int_23 () | 
| int | task_int_1 () | 
| int | main (int, char *const []) | 
| Variables | |
| boost::mutex | m_io_monitor | 
| int | loops = 0 | 
threadpool tutorial.
This file contains a tutorial for the threadpool library.
Copyright (c) 2005-2007 Philipp Henkel
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
http://threadpool.sourceforge.net
Definition in file tutorial.cpp.
| bool looped_task | ( | ) | 
Definition at line 74 of file tutorial.cpp.
| int main | ( | int | , | 
| char * | const[] | ||
| ) | 
Definition at line 107 of file tutorial.cpp.
| void print | ( | string | text | ) | 
Definition at line 32 of file tutorial.cpp.
| void task_1 | ( | ) | 
Definition at line 51 of file tutorial.cpp.
| void task_2 | ( | ) | 
Definition at line 57 of file tutorial.cpp.
| void task_3 | ( | ) | 
Definition at line 63 of file tutorial.cpp.
| int task_int_1 | ( | ) | 
Definition at line 87 of file tutorial.cpp.
| int task_int_23 | ( | ) | 
Definition at line 81 of file tutorial.cpp.
| void task_with_parameter | ( | int | value | ) | 
Definition at line 68 of file tutorial.cpp.
| string to_string | ( | T const & | value | ) | 
Definition at line 39 of file tutorial.cpp.
| int loops = 0 | 
Definition at line 73 of file tutorial.cpp.
| boost::mutex m_io_monitor | 
Definition at line 30 of file tutorial.cpp.