Fawkes API
Fawkes Development Version
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
aqt_vision_threads.h
1
2
/***************************************************************************
3
* aqt_vision_threads.h - FireVision Base Vision Camera Data
4
*
5
* Created: Mon Sep 24 16:16:05 2007
6
* Copyright 2006-2007 Tim Niemueller [www.niemueller.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Library General Public License for more details.
19
*
20
* Read the full text in the LICENSE.GPL file in the doc directory.
21
*/
22
23
#ifndef __FIREVISION_APPS_BASE_AQT_VISION_THREADS_H_
24
#define __FIREVISION_APPS_BASE_AQT_VISION_THREADS_H_
25
26
#include <core/threading/thread_list.h>
27
28
namespace
fawkes {
29
class
Clock;
30
class
Time;
31
class
Barrier;
32
}
33
34
class
FvAqtVisionThreads
35
{
36
friend
class
FvBaseThread
;
37
friend
class
FvAquisitionThread;
38
public
:
39
FvAqtVisionThreads
(
fawkes::Clock
*clock);
40
~FvAqtVisionThreads
();
41
42
void
add_waiting_thread
(
fawkes::Thread
*thread);
43
void
remove_thread
(
fawkes::Thread
*thread);
44
void
remove_waiting_thread
(
fawkes::Thread
*thread);
45
void
set_thread_running
(
fawkes::Thread
*thread);
46
47
bool
empty
();
48
float
empty_time
();
49
50
bool
has_cyclic_thread
();
51
52
void
wakeup_and_wait_cyclic_threads
();
53
54
void
set_prepfin_hold
(
bool
hold);
55
56
bool
has_waiting_thread
(
fawkes::Thread
*t);
57
58
private
:
59
fawkes::ThreadList
*running_threads_cyclic;
60
fawkes::ThreadList
*running_threads_cont;
61
fawkes::ThreadList
*waiting_threads;
62
63
fawkes::Barrier
*cyclic_barrier;
64
65
fawkes::Clock
*clock;
66
fawkes::Time
*_empty_time;
67
};
68
69
#endif
src
plugins
perception
base
aqt_vision_threads.h
Generated by
1.8.3.1