Debian Codegraph @

gstreamer/gstreamermm/taskpool.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/taskpool.h`/
2 #ifndef _GSTREAMERMM_TASKPOOL_H
3 #define _GSTREAMERMM_TASKPOOL_Hcxx . . $ `gstreamer/gstreamermm/taskpool.h:3:9`!
4
5
6 #include <glibmm/ustring.h>
7 #include <sigc++/sigc++.h>
8
9 /* gstreamermm - a C++ wrapper for gstreamer
10 *
11 * Copyright 2008-2009 The gstreamermm Development Team
12 *
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation; either
16 * version 2.1 of the License, or (at your option) any later version.
17 *
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free
25 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 */
27
28 #include <gst/gst.h>
29 #include <gstreamermm/object.h>cxx . . $ `<file>/gstreamer/gstreamermm/object.h`/
30
31
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 using GstTaskPoolcxx . . $ GstTaskPool# = struct _GstTaskPoolcxx . . $ _GstTaskPool#;
34 using GstTaskPoolClasscxx . . $ GstTaskPoolClass# = struct _GstTaskPoolClasscxx . . $ _GstTaskPoolClass#;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
36
37
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 namespace Gstcxx . . $ Gst/
40 { class TaskPool_Classcxx . . $ Gst/TaskPool_Class#; } // namespace Gst
41 #endif //DOXYGEN_SHOULD_SKIP_THIS
42
43 namespace Gstcxx . . $ Gst/
44 {
45
46 /** A class representing a pool of GStreamer streaming threads.
47 * This object provides an abstraction for creating threads. The default
48 * implementation uses a regular Glib::ThreadPool to start tasks.
49 *
50 * Subclasses can be made to create custom threads.
51 *
52 * Last reviewed on 2009-04-23 (0.10.24)
53 */
54
55 class TaskPoolcxx . . $ Gst/TaskPool# : public Objectcxx . . $ Gst/Object#
56 {
57
58 #ifndef DOXYGEN_SHOULD_SKIP_THIS
59
60 public:
61 using CppObjectTypecxx . . $ Gst/TaskPool#CppObjectType# = TaskPoolcxx . . $ Gst/TaskPool#;
62 using CppClassTypecxx . . $ Gst/TaskPool#CppClassType# = TaskPool_Classcxx . . $ Gst/TaskPool_Class#;
63 using BaseObjectTypecxx . . $ Gst/TaskPool#BaseObjectType# = GstTaskPoolcxx . . $ GstTaskPool#;
64 using BaseClassTypecxx . . $ Gst/TaskPool#BaseClassType# = GstTaskPoolClasscxx . . $ GstTaskPoolClass#;
65
66 // noncopyable
67 TaskPoolcxx . . $ Gst/TaskPool#TaskPool(9a5a444a028e109a).(const TaskPoolcxx . . $ Gst/TaskPool#&) = delete;
68 TaskPoolcxx . . $ Gst/TaskPool#& operatorcxx . . $ Gst/TaskPool#`operator=`(7fc1b8e9611a6b3e).=(const TaskPoolcxx . . $ Gst/TaskPool#&) = delete;
69
70 private: friend class TaskPool_Classcxx . . $ Gst/TaskPool_Class#;
71 static CppClassTypecxx . . $ Gst/TaskPool#CppClassType# taskpool_class_cxx . . $ Gst/TaskPool#taskpool_class_.;
72
73 protected:
74 explicit TaskPoolcxx . . $ Gst/TaskPool#TaskPool(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params);
75 explicit TaskPoolcxx . . $ Gst/TaskPool#TaskPool(817be88a9e9deaaa).(GstTaskPoolcxx . . $ GstTaskPool#* castitem);
76
77 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
78
79 public:
80
81 TaskPoolcxx . . $ Gst/TaskPool#TaskPool(6c26addd7b67731d).(TaskPoolcxx . . $ Gst/TaskPool#&& src) noexcept;
82 TaskPoolcxx . . $ Gst/TaskPool#& operatorcxx . . $ Gst/TaskPool#`operator=`(5aa5766e23437a56).=(TaskPoolcxx . . $ Gst/TaskPool#&& src) noexcept;
83
84 ~cxx . . $ Gst/TaskPool#`~TaskPool`(ced63f7c635d850d).TaskPoolcxx . . $ Gst/TaskPool#() noexcept override;
85
86 /** Get the GType for this class, for use with the underlying GObject type system.
87 */
88 static GType get_typecxx . . $ Gst/TaskPool#get_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
89
90 #ifndef DOXYGEN_SHOULD_SKIP_THIS
91
92
93 static GType get_base_typecxx . . $ Gst/TaskPool#get_base_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
94 #endif
95
96 ///Provides access to the underlying C GObject.
97 GstTaskPoolcxx . . $ GstTaskPool#* gobjcxx . . $ Gst/TaskPool#gobj(f998cc088a00ecbc).() { return reinterpret_cast<GstTaskPoolcxx . . $ GstTaskPool#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); }
98
99 ///Provides access to the underlying C GObject.
100 const GstTaskPoolcxx . . $ GstTaskPool#* gobjcxx . . $ Gst/TaskPool#gobj(529eea2530e3c41a).() const { return reinterpret_cast<GstTaskPoolcxx . . $ GstTaskPool#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); }
101
102 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
103 GstTaskPoolcxx . . $ GstTaskPool#* gobj_copycxx . . $ Gst/TaskPool#gobj_copy(f998cc088a00ecbc).();
104
105 private:
106
107
108 protected:
109 TaskPoolcxx . . $ Gst/TaskPool#TaskPool(49f6e7a06ebc5aa8).();
110
111 public:
112 /** For example,
113 * void on_do_push();.
114 */
115 typedef sigccxx . . $ sigc/::slotcxx . . $ sigc/slot#<void> SlotPushcxx . . $ Gst/TaskPool#SlotPush#;
116
117 public:
118 /** Create a new default task pool. The default task pool will use a regular
119 * Glib::ThreadPool for threads.
120 * @return A new Gst::TaskPool.
121 */
122
123 static Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<TaskPoolcxx . . $ Gst/TaskPool#> createcxx . . $ Gst/TaskPool#create(b9c7358c4d373e33).();
124
125
126 /** @throw Glib::Error.
127 */
128 void preparecxx . . $ Gst/TaskPool#prepare(49f6e7a06ebc5aa8).();
129
130 /** Start the execution of a new thread from pool.
131 *
132 * @param slot The function to call.
133 * @return A pointer that should be used for the join() method. This pointer
134 * can be 0, you must check error to detect errors.
135 * @throw Glib::Error.
136 */
137 gpointer pushcxx . . $ Gst/TaskPool#push(90f353003dd622d7).(const SlotPushcxx . . $ Gst/TaskPool#SlotPush#& slot);
138
139
140 /** Join a task and/or return it to the pool. @a id is the id obtained from
141 * push().
142 *
143 * @param id The id.
144 */
145 void joincxx . . $ Gst/TaskPool#join(5d22bdacc48458e8).(gpointer id);
146
147 /** Wait for all tasks to be stopped. This is mainly used internally
148 * to ensure proper cleanup of internal data structures in test suites.
149 *
150 * MT safe.
151 */
152 void cleanupcxx . . $ Gst/TaskPool#cleanup(49f6e7a06ebc5aa8).();
153
154 /** Virtual function which prepares the thread pool.
155 * @throw Glib::Error.
156 */
157 virtual void prepare_vfunccxx . . $ Gst/TaskPool#prepare_vfunc(49f6e7a06ebc5aa8).();
158
159 /** Virtual function to cleanup the thread pool.
160 */
161 virtual void cleanup_vfunccxx . . $ Gst/TaskPool#cleanup_vfunc(49f6e7a06ebc5aa8).();
162
163
164 /** Virtual function which starts a new thread.
165 * @throw Glib::Error.
166 */
167 virtual gpointer push_vfunccxx . . $ Gst/TaskPool#push_vfunc(90f353003dd622d7).(const SlotPushcxx . . $ Gst/TaskPool#SlotPush#& slot);
168
169 /** Virtual function to join a thread.
170 */
171 virtual void join_vfunccxx . . $ Gst/TaskPool#join_vfunc(5d22bdacc48458e8).(gpointer id);
172
173
174 protected:
175
176
177 public:
178
179 public:
180 //C++ methods used to invoke GTK+ virtual functions:
181
182 protected:
183 //GTK+ Virtual Functions (override these to change behaviour):
184
185 //Default Signal Handlers::
186
187
188 };
189
190 } // namespace Gst
191
192
193 namespace Glibcxx . . $ Glib/
194 {
195 /** A Glib::wrap() method for this object.
196 *
197 * @param object The C instance.
198 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
199 * @result A C++ instance that wraps this C instance.
200 *
201 * @relates Gst::TaskPool
202 */
203 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::TaskPoolcxx . . $ Gst/TaskPool#> wrapcxx . . $ Glib/wrap(6d0e21b0c22bfa6f).(GstTaskPoolcxx . . $ GstTaskPool#* object, bool take_copy = false);
204 }
205
206
207 #endif /* _GSTREAMERMM_TASKPOOL_H */
208