gst/gst.defs: Add 'unblock-threads #t' for critical functions/methods.

Original commit message from CVS:
* gst/gst.defs:
Add 'unblock-threads #t' for critical functions/methods.
This commit is contained in:
Edward Hervey 2006-06-13 10:55:09 +00:00
parent 8c3aae3818
commit 54b5a6bf6e
2 changed files with 59 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-06-13 Edward Hervey <edward@fluendo.com>
* gst/gst.defs:
Add 'unblock-threads #t' for critical functions/methods.
2006-06-12 Edward Hervey <edward@fluendo.com> 2006-06-12 Edward Hervey <edward@fluendo.com>
* testsuite/Makefile.am: * testsuite/Makefile.am:

View file

@ -87,6 +87,7 @@
'("GstElement*" "element_1") '("GstElement*" "element_1")
) )
(varargs #t) (varargs #t)
(unblock-threads #t)
) )
(define-method add_many (define-method add_many
@ -97,6 +98,7 @@
'("GstElement*" "element_1") '("GstElement*" "element_1")
) )
(varargs #t) (varargs #t)
(unblock-threads #t)
) )
(define-method remove (define-method remove
@ -107,6 +109,7 @@
'("GstElement*" "element_1") '("GstElement*" "element_1")
) )
(varargs #t) (varargs #t)
(unblock-threads #t)
) )
(define-method remove_many (define-method remove_many
@ -117,7 +120,9 @@
'("GstElement*" "element_1") '("GstElement*" "element_1")
) )
(varargs #t) (varargs #t)
(unblock-threads #t)
) )
(define-method get_by_name (define-method get_by_name
(of-object "GstBin") (of-object "GstBin")
(c-name "gst_bin_get_by_name") (c-name "gst_bin_get_by_name")
@ -315,6 +320,7 @@
(parameters (parameters
'("GstMessage*" "message" (keep-refcount)) '("GstMessage*" "message" (keep-refcount))
) )
(unblock-threads #t)
) )
(define-method have_pending (define-method have_pending
@ -393,6 +399,7 @@
'("GstMessageType" "events") '("GstMessageType" "events")
'("GstClockTimeDiff" "timeout") '("GstClockTimeDiff" "timeout")
) )
(unblock-threads #t)
) )
(define-method async_signal_func (define-method async_signal_func
@ -998,6 +1005,7 @@
(c-name "gst_element_provide_clock") (c-name "gst_element_provide_clock")
(return-type "GstClock*") (return-type "GstClock*")
(caller-owns-return #t) (caller-owns-return #t)
(unblock-threads #t)
) )
(define-method set_clock (define-method set_clock
@ -1007,6 +1015,7 @@
(parameters (parameters
'("GstClock*" "clock") '("GstClock*" "clock")
) )
(unblock-threads #t)
) )
(define-method set_base_time (define-method set_base_time
@ -1016,6 +1025,7 @@
(parameters (parameters
'("GstClockTime" "time") '("GstClockTime" "time")
) )
(unblock-threads #t)
) )
(define-method get_base_time (define-method get_base_time
@ -1037,6 +1047,7 @@
(parameters (parameters
'("GstIndex*" "index") '("GstIndex*" "index")
) )
(unblock-threads #t)
) )
(define-method get_index (define-method get_index
@ -1053,6 +1064,7 @@
(parameters (parameters
'("GstBus*" "bus") '("GstBus*" "bus")
) )
(unblock-threads #t)
) )
(define-method get_bus (define-method get_bus
@ -1060,6 +1072,7 @@
(c-name "gst_element_get_bus") (c-name "gst_element_get_bus")
(return-type "GstBus*") (return-type "GstBus*")
(caller-owns-return #t) (caller-owns-return #t)
(unblock-threads #t)
) )
(define-method get_clock (define-method get_clock
@ -1067,6 +1080,7 @@
(c-name "gst_element_get_clock") (c-name "gst_element_get_clock")
(return-type "GstClock*") (return-type "GstClock*")
(caller-owns-return #t) (caller-owns-return #t)
(unblock-threads #t)
) )
(define-method add_pad (define-method add_pad
@ -1076,6 +1090,7 @@
(parameters (parameters
'("GstPad*" "pad") '("GstPad*" "pad")
) )
(unblock-threads #t)
) )
(define-method remove_pad (define-method remove_pad
@ -1085,12 +1100,14 @@
(parameters (parameters
'("GstPad*" "pad") '("GstPad*" "pad")
) )
(unblock-threads #t)
) )
(define-method no_more_pads (define-method no_more_pads
(of-object "GstElement") (of-object "GstElement")
(c-name "gst_element_no_more_pads") (c-name "gst_element_no_more_pads")
(return-type "none") (return-type "none")
(unblock-threads #t)
) )
(define-method get_pad (define-method get_pad
@ -1101,6 +1118,7 @@
(parameters (parameters
'("const-gchar*" "name") '("const-gchar*" "name")
) )
(unblock-threads #t)
) )
(define-method get_static_pad (define-method get_static_pad
@ -1111,6 +1129,7 @@
(parameters (parameters
'("const-gchar*" "name") '("const-gchar*" "name")
) )
(unblock-threads #t)
) )
(define-method get_request_pad (define-method get_request_pad
@ -1121,6 +1140,7 @@
(parameters (parameters
'("const-gchar*" "name") '("const-gchar*" "name")
) )
(unblock-threads #t)
) )
(define-method release_request_pad (define-method release_request_pad
@ -1130,6 +1150,7 @@
(parameters (parameters
'("GstPad*" "pad") '("GstPad*" "pad")
) )
(unblock-threads #t)
) )
(define-method pads (define-method pads
@ -1157,6 +1178,7 @@
(parameters (parameters
'("GstEvent*" "event" (keep-refcount)) '("GstEvent*" "event" (keep-refcount))
) )
(unblock-threads #t)
) )
(define-method seek (define-method seek
@ -1172,6 +1194,7 @@
'("GstSeekType" "stop_type") '("GstSeekType" "stop_type")
'("gint64" "stop") '("gint64" "stop")
) )
(unblock-threads #t)
) )
(define-method get_query_types (define-method get_query_types
@ -1187,6 +1210,7 @@
(parameters (parameters
'("GstQuery*" "query") '("GstQuery*" "query")
) )
(unblock-threads #t)
) )
(define-method post_message (define-method post_message
@ -1196,6 +1220,7 @@
(parameters (parameters
'("GstMessage*" "message" (keep-refcount)) '("GstMessage*" "message" (keep-refcount))
) )
(unblock-threads #t)
) )
(define-method message_full (define-method message_full
@ -1212,12 +1237,14 @@
'("const-gchar*" "function") '("const-gchar*" "function")
'("gint" "line") '("gint" "line")
) )
(unblock-threads #t)
) )
(define-method is_locked_state (define-method is_locked_state
(of-object "GstElement") (of-object "GstElement")
(c-name "gst_element_is_locked_state") (c-name "gst_element_is_locked_state")
(return-type "gboolean") (return-type "gboolean")
(unblock-threads #t)
) )
(define-method set_locked_state (define-method set_locked_state
@ -1227,12 +1254,14 @@
(parameters (parameters
'("gboolean" "locked_state") '("gboolean" "locked_state")
) )
(unblock-threads #t)
) )
(define-method sync_state_with_parent (define-method sync_state_with_parent
(of-object "GstElement") (of-object "GstElement")
(c-name "gst_element_sync_state_with_parent") (c-name "gst_element_sync_state_with_parent")
(return-type "gboolean") (return-type "gboolean")
(unblock-threads #t)
) )
(define-method get_state (define-method get_state
@ -1244,6 +1273,7 @@
'("GstState*" "pending") '("GstState*" "pending")
'("GstClockTime" "timeout") '("GstClockTime" "timeout")
) )
(unblock-threads #t)
) )
(define-method set_state (define-method set_state
@ -1253,12 +1283,14 @@
(parameters (parameters
'("GstState" "state") '("GstState" "state")
) )
(unblock-threads #t)
) )
(define-method abort_state (define-method abort_state
(of-object "GstElement") (of-object "GstElement")
(c-name "gst_element_abort_state") (c-name "gst_element_abort_state")
(return-type "none") (return-type "none")
(unblock-threads #t)
) )
(define-method continue_state (define-method continue_state
@ -1268,12 +1300,14 @@
(parameters (parameters
'("GstStateChangeReturn" "retstate") '("GstStateChangeReturn" "retstate")
) )
(unblock-threads #t)
) )
(define-method lost_state (define-method lost_state
(of-object "GstElement") (of-object "GstElement")
(c-name "gst_element_lost_state") (c-name "gst_element_lost_state")
(return-type "none") (return-type "none")
(unblock-threads #t)
) )
(define-method get_factory (define-method get_factory
@ -2118,6 +2152,7 @@
(parameters (parameters
'("gint" "id") '("gint" "id")
) )
(unblock-threads #t)
) )
(define-method get_group (define-method get_group
@ -2139,6 +2174,7 @@
(parameters (parameters
'("gint" "groupnum") '("gint" "groupnum")
) )
(unblock-threads #t)
) )
(define-method set_certainty (define-method set_certainty
@ -3161,6 +3197,7 @@
(parameters (parameters
'("GstObject*" "parent") '("GstObject*" "parent")
) )
(unblock-threads #t)
) )
(define-method get_parent (define-method get_parent
@ -3174,6 +3211,7 @@
(of-object "GstObject") (of-object "GstObject")
(c-name "gst_object_unparent") (c-name "gst_object_unparent")
(return-type "none") (return-type "none")
(unblock-threads #t)
) )
(define-method has_ancestor (define-method has_ancestor
@ -3925,6 +3963,7 @@
'("GstPad*" "pad") '("GstPad*" "pad")
'("GstTagList*" "list") '("GstTagList*" "list")
) )
(unblock-threads #t)
) )
(define-method found_tags (define-method found_tags
@ -3934,6 +3973,7 @@
(parameters (parameters
'("GstTagList*" "list") '("GstTagList*" "list")
) )
(unblock-threads #t)
) )
(define-function gst_parse_bin_from_description (define-function gst_parse_bin_from_description
@ -6387,12 +6427,14 @@
'("GError*" "error") '("GError*" "error")
'("gchar*" "debug") '("gchar*" "debug")
) )
(unblock-threads #t)
) )
(define-method create_all_pads (define-method create_all_pads
(of-object "GstElement") (of-object "GstElement")
(c-name "gst_element_create_all_pads") (c-name "gst_element_create_all_pads")
(return-type "none") (return-type "none")
(unblock-threads #t)
) )
(define-method get_compatible_pad (define-method get_compatible_pad
@ -6403,6 +6445,7 @@
'("GstPad*" "pad") '("GstPad*" "pad")
'("const-GstCaps*" "caps" (null-ok) (default "NULL")) '("const-GstCaps*" "caps" (null-ok) (default "NULL"))
) )
(unblock-threads #t)
) )
(define-method get_compatible_pad_template (define-method get_compatible_pad_template
@ -6412,6 +6455,7 @@
(parameters (parameters
'("GstPadTemplate*" "compattempl") '("GstPadTemplate*" "compattempl")
) )
(unblock-threads #t)
) )
(define-method get_name (define-method get_name
@ -6454,6 +6498,7 @@
(parameters (parameters
'("GstElement*" "dest") '("GstElement*" "dest")
) )
(unblock-threads #t)
) )
(define-method link_filtered (define-method link_filtered
@ -6464,6 +6509,7 @@
'("GstElement*" "dest") '("GstElement*" "dest")
'("GstCaps*" "filter") '("GstCaps*" "filter")
) )
(unblock-threads #t)
) )
(define-function element_unlink_many (define-function element_unlink_many
@ -6474,6 +6520,7 @@
'("GstElement*" "element_2") '("GstElement*" "element_2")
) )
(varargs #t) (varargs #t)
(unblock-threads #t)
) )
(define-method link_pads (define-method link_pads
@ -6485,6 +6532,7 @@
'("GstElement*" "dest") '("GstElement*" "dest")
'("const-gchar*" "destpadname") '("const-gchar*" "destpadname")
) )
(unblock-threads #t)
) )
(define-method unlink_pads (define-method unlink_pads
@ -6496,6 +6544,7 @@
'("GstElement*" "dest") '("GstElement*" "dest")
'("const-gchar*" "destpadname") '("const-gchar*" "destpadname")
) )
(unblock-threads #t)
) )
(define-method link_pads_filtered (define-method link_pads_filtered
@ -6508,6 +6557,7 @@
'("const-gchar*" "destpadname") '("const-gchar*" "destpadname")
'("GstCaps*" "filter") '("GstCaps*" "filter")
) )
(unblock-threads #t)
) )
(define-method seek_simple (define-method seek_simple
@ -6519,6 +6569,7 @@
'("GstSeekFlags" "seek_flags") '("GstSeekFlags" "seek_flags")
'("gint64" "seek_pos") '("gint64" "seek_pos")
) )
(unblock-threads #t)
) )
(define-method can_src_caps (define-method can_src_caps
@ -6548,6 +6599,7 @@
'("GstFormat*" "format") '("GstFormat*" "format")
'("gint64*" "cur") '("gint64*" "cur")
) )
(unblock-threads #t)
) )
(define-method query_duration (define-method query_duration
@ -6558,6 +6610,7 @@
'("GstFormat*" "format") '("GstFormat*" "format")
'("gint64*" "duration") '("gint64*" "duration")
) )
(unblock-threads #t)
) )
(define-method query_convert (define-method query_convert
@ -6570,6 +6623,7 @@
'("GstFormat*" "dest_fmt") '("GstFormat*" "dest_fmt")
'("gint64*" "dest_val") '("gint64*" "dest_val")
) )
(unblock-threads #t)
) )
(define-method install_std_props (define-method install_std_props