Loading [MathJax]/extensions/tex2jax.js
iCub-main
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
a
b
c
d
e
h
i
j
l
m
n
p
r
s
t
w
z
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
a
b
c
e
g
i
l
n
p
r
s
t
u
Enumerator
a
b
c
d
e
f
g
i
l
m
p
r
s
t
u
Properties
Related Symbols
a
b
c
g
i
l
o
q
r
s
t
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
x
y
z
Typedefs
Enumerations
Enumerator
_
a
c
d
e
g
j
m
n
p
s
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
icub-main
src
libraries
icubmod
canBusMotionControl
ThreadTable2.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 "
ThreadTable2.h
"
21
#include "
canControlConstants.h
"
22
23
ThreadTable2::ThreadTable2
()
24
{
25
ic=0;
26
clear
();
27
}
23
ThreadTable2::ThreadTable2
() {
…
}
28
29
ThreadTable2::~ThreadTable2
()
30
{
31
if
(ic!=0)
32
ic->destroyBuffer(_replies);
33
ic=0;
34
}
29
ThreadTable2::~ThreadTable2
() {
…
}
35
36
void
ThreadTable2::clear
()
37
{
38
lock();
39
_pending=
BUF_SIZE
;
40
_replied=0;
41
unlock();
42
}
36
void
ThreadTable2::clear
() {
…
}
43
44
void
ThreadTable2::init
(yarp::dev::ICanBufferFactory *i)
45
{
46
ic=i;
47
_replies=ic->createBuffer(
BUF_SIZE
);
48
}
44
void
ThreadTable2::init
(yarp::dev::ICanBufferFactory *i) {
…
}
49
BUF_SIZE
#define BUF_SIZE
Definition
EsdMessageSniffer.cpp:37
ThreadTable2.h
canControlConstants.h
ThreadTable2::clear
void clear()
Definition
ThreadTable2.cpp:36
ThreadTable2::~ThreadTable2
~ThreadTable2()
Definition
ThreadTable2.cpp:29
ThreadTable2::init
void init(yarp::dev::ICanBufferFactory *i)
Definition
ThreadTable2.cpp:44
ThreadTable2::ThreadTable2
ThreadTable2()
Definition
ThreadTable2.cpp:23
Generated on Wed Apr 9 2025 08:53:51 for iCub-main by
1.9.8