The Gaudi Framework
v29r0 (ff2e7097)
|
threadpool tutorial. More...
#include <stdlib.h>
#include <boost/bind.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/threadpool.hpp>
#include <iostream>
#include <sstream>
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 66 of file tutorial.cpp.
int main | ( | int | , |
char * | const[] | ||
) |
Definition at line 94 of file tutorial.cpp.
void print | ( | string | text | ) |
Definition at line 32 of file tutorial.cpp.
void task_1 | ( | ) |
Definition at line 49 of file tutorial.cpp.
void task_2 | ( | ) |
Definition at line 55 of file tutorial.cpp.
void task_3 | ( | ) |
Definition at line 61 of file tutorial.cpp.
int task_int_1 | ( | ) |
Definition at line 78 of file tutorial.cpp.
int task_int_23 | ( | ) |
Definition at line 72 of file tutorial.cpp.
void task_with_parameter | ( | int | value | ) |
Definition at line 63 of file tutorial.cpp.
string to_string | ( | T const & | value | ) |
Definition at line 39 of file tutorial.cpp.
int loops = 0 |
Definition at line 65 of file tutorial.cpp.
boost::mutex m_io_monitor |
Definition at line 30 of file tutorial.cpp.