|  | The Gaudi Framework
    v29r0 (ff2e7097)
    | 
Mergesort example. More...
#include <algorithm>#include <boost/smart_ptr.hpp>#include <boost/thread/mutex.hpp>#include <boost/threadpool.hpp>#include <iostream>#include <sstream>
Go to the source code of this file.
| Classes | |
| class | image | 
| class | merge_job< T > | 
| Functions | |
| void | print (string text) | 
| template<class T > | |
| string | to_string (const T &value) | 
| unsigned long | get_ms_diff (boost::xtime &start, boost::xtime &end) | 
| int | main (int argc, char *const argv[]) | 
| Variables | |
| boost::mutex | m_io_monitor | 
Mergesort example.
This example shows how to use the threadpool library.
Copyright (c) 2005-2006 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 mergesort.cpp.
| unsigned long get_ms_diff | ( | boost::xtime & | start, | 
| boost::xtime & | end | ||
| ) | 
Definition at line 45 of file mergesort.cpp.
| int main | ( | int | argc, | 
| char *const | argv[] | ||
| ) | 
Definition at line 113 of file mergesort.cpp.
| void print | ( | string | text | ) | 
Definition at line 30 of file mergesort.cpp.
| string to_string | ( | const T & | value | ) | 
Definition at line 37 of file mergesort.cpp.
| boost::mutex m_io_monitor | 
Definition at line 28 of file mergesort.cpp.