Small documentation updates

Original commit message from CVS:
Small documentation updates
This commit is contained in:
Wim Taymans 2002-07-13 23:05:46 +00:00
parent b5c170f42a
commit 713d471ddd
2 changed files with 17 additions and 1 deletions

2
TODO
View file

@ -9,7 +9,7 @@ before changes are accepted.
target release ! description target release ! description
! !
? ! expose and API to query the supported seek formats/flags on 0.4.1 ! expose and API to query the supported seek formats/flags on
! pads, somthing like an extra arg to gst_pad_set_convert_function ! pads, somthing like an extra arg to gst_pad_set_convert_function
! and gst_pad_set_event_function with some function to query the ! and gst_pad_set_event_function with some function to query the
! flags and formats. more ideas in docs/random/wtay/query_events ! flags and formats. more ideas in docs/random/wtay/query_events

View file

@ -509,12 +509,28 @@ init_popt_callback (poptContext context, enum poptCallbackReason reason,
} }
} }
/**
* gst_use_threads:
* @use_threads: flag indicating threads should be used
*
* Instructs the core to turn on/off threading. When threading
* is turned off, all thread operations such as mutexes and conditionals
* are turned into NOPs. use this if you want absolute minimal overhead
* and you don't use any threads in the pipeline.
*/
void void
gst_use_threads (gboolean use_threads) gst_use_threads (gboolean use_threads)
{ {
_gst_use_threads = use_threads; _gst_use_threads = use_threads;
} }
/**
* gst_has_threads:
*
* Query if GStreamer has threads enabled.
*
* Returns: TRUE if threads are enabled.
*/
gboolean gboolean
gst_has_threads (void) gst_has_threads (void)
{ {