iCub-main
Loading...
Searching...
No Matches
icub-main
src
libraries
icubmod
canBusMotionControl
ThreadPool2.cpp
Go to the documentation of this file.
1
// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
3
/*
4
* Copyright (C) 2008 The RobotCub Consortium
5
* Author: Lorenzo Natale
6
* website: www.robotcub.org
7
* Permission is granted to copy, distribute, and/or modify this program
8
* under the terms of the GNU General Public License, version 2 or any
9
* later version published by the Free Software Foundation.
10
*
11
* A copy of the license can be found at
12
* http://www.robotcub.org/icub/license/gpl.txt
13
*
14
* This program is distributed in the hope that it will be useful, but
15
* WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
17
* Public License for more details
18
*/
19
20
#include "
ThreadPool2.h
"
21
22
ThreadPool2::ThreadPool2
(yarp::dev::ICanBufferFactory *ic)
23
{
24
index=0;
25
pool=
new
ThreadTable2
[
CANCONTROL_MAX_THREADS
];
26
for
(
int
k=0;k<
CANCONTROL_MAX_THREADS
;k++)
27
pool[k].init(ic);
28
}
29
30
ThreadPool2::~ThreadPool2
()
31
{
32
delete
[] pool;
33
}
34
ThreadPool2.h
CANCONTROL_MAX_THREADS
const int CANCONTROL_MAX_THREADS
Definition
canControlConstants.h:40
ThreadPool2::ThreadPool2
ThreadPool2(yarp::dev::ICanBufferFactory *ic)
Definition
ThreadPool2.cpp:22
ThreadPool2::~ThreadPool2
~ThreadPool2()
Definition
ThreadPool2.cpp:30
ThreadTable2
Definition
ThreadTable2.h:33
Generated on Wed Dec 18 2024 16:34:46 for iCub-main by
1.9.8