mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-30 16:02:18 +01:00
Docs: Convert examples to |[ ]|
This commit is contained in:
@@ -804,7 +804,7 @@ g_cond_broadcast (GCond *cond)
|
||||
* passed.
|
||||
*
|
||||
* The following code shows how to correctly perform a timed wait on a
|
||||
* condition variable (extended the example presented in the
|
||||
* condition variable (extending the example presented in the
|
||||
* documentation for #GCond):
|
||||
*
|
||||
* |[
|
||||
@@ -820,12 +820,12 @@ g_cond_broadcast (GCond *cond)
|
||||
* while (!current_data)
|
||||
* if (!g_cond_wait_until (&data_cond, &data_mutex, end_time))
|
||||
* {
|
||||
* // timeout has passed.
|
||||
* /* timeout has passed. */
|
||||
* g_mutex_unlock (&data_mutex);
|
||||
* return NULL;
|
||||
* }
|
||||
*
|
||||
* // there is data for us
|
||||
* /* there is data for us */
|
||||
* data = current_data;
|
||||
* current_data = NULL;
|
||||
*
|
||||
@@ -920,7 +920,7 @@ g_cond_wait_until (GCond *cond,
|
||||
* |[
|
||||
* static GPrivate name_key = G_PRIVATE_INIT (g_free);
|
||||
*
|
||||
* // return value should not be freed
|
||||
* /* return value should not be freed */
|
||||
* const gchar *
|
||||
* get_local_name (void)
|
||||
* {
|
||||
@@ -934,7 +934,7 @@ g_cond_wait_until (GCond *cond,
|
||||
* }
|
||||
*
|
||||
*
|
||||
* static GPrivate count_key; // no free function
|
||||
* static GPrivate count_key; /* no free function */
|
||||
*
|
||||
* gint
|
||||
* get_local_count (void)
|
||||
|
||||
Reference in New Issue
Block a user