gboolean running;
/*< private >*/
- union {
- struct {
- /* thread this task is currently running in */
- GThread *thread;
- } ABI;
- gpointer _gst_reserved[GST_PADDING - 1];
- } abidata;
-
- GstTaskPrivate *priv;
+ GThread *thread;
+
+ GstTaskPrivate *priv;
+
+ gpointer _gst_reserved[GST_PADDING];
};
struct _GstTaskClass {
GType gst_task_get_type (void);
-GstTask* gst_task_create (GstTaskFunction func, gpointer data);
+GstTask* gst_task_new (GstTaskFunction func, gpointer data);
void gst_task_set_lock (GstTask *task, GStaticRecMutex *mutex);
void gst_task_set_priority (GstTask *task, GThreadPriority priority);