Libthreadar  1.0.1
 All Classes Namespaces Files Functions Macros
libthreadar.hpp
Go to the documentation of this file.
1 /*********************************************************************/
2 // libthreadar - is a library providing several C++ classes to work with threads
3 // Copyright (C) 2014-2015 Denis Corbin
4 //
5 // This file is part of libthreadar
6 //
7 // libthreadar is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Lesser General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // libhtreadar is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU Lesser General Public License for more details.
16 //
17 // You should have received a copy of the GNU Lesser General Public License
18 // along with libthreadar. If not, see <http://www.gnu.org/licenses/>
19 //
20 //----
21 // to contact the author: dar.linux@free.fr
22 /*********************************************************************/
23 
24 #ifndef LIBTHREADAR_HPP
25 #define LIBTHREADAR_HPP
26 
29 
47 #include "config.h"
48 
49 #include "mutex.hpp"
50 #include "semaphore.hpp"
51 #include "tampon.hpp"
52 #include "thread.hpp"
53 #include "barrier.hpp"
54 
56 
57 namespace libthreadar
58 {
59 
61 
70  extern void get_version(unsigned int & major, unsigned int & medium, unsigned int & minor);
71 
72 } // end of namespace
73 
74 extern "C"
75 {
77 
81  extern unsigned int for_autoconf(unsigned int x);
82 }
83 
84 #endif
defines the mutex C++ class
defines the barrier C++ class, to synchronize several threads
defines the semaphore class
defines the tampon class that provides asynchronous pipe-like (unidirectional) communication between ...
holds the definition of the thread class
unsigned int for_autoconf(unsigned int x)
in case you use autoconf AC_CHECK_LIB in your program to detect the availability of libthreadar ...
This is the only namespace used in libthreadar and all symbols provided by libthreadar are member of ...
Definition: barrier.hpp:46
void get_version(unsigned int &major, unsigned int &medium, unsigned int &minor)
provides the version of libthreadar