mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-10 03:04:05 +02:00
GThreadPool: cosmetic cleanups
Mostly documentation and formatting trivial, but also add boolean return types to GError taking functions.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Lesser General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
typedef struct _GThreadPool GThreadPool;
|
typedef struct _GThreadPool GThreadPool;
|
||||||
|
|
||||||
/* Thread Pools
|
/* Thread Pools
|
||||||
*/
|
*/
|
||||||
@@ -47,31 +47,32 @@ struct _GThreadPool
|
|||||||
gboolean exclusive;
|
gboolean exclusive;
|
||||||
};
|
};
|
||||||
|
|
||||||
GThreadPool* g_thread_pool_new (GFunc func,
|
GThreadPool * g_thread_pool_new (GFunc func,
|
||||||
gpointer user_data,
|
gpointer user_data,
|
||||||
gint max_threads,
|
gint max_threads,
|
||||||
gboolean exclusive,
|
gboolean exclusive,
|
||||||
GError **error);
|
GError **error);
|
||||||
void g_thread_pool_push (GThreadPool *pool,
|
void g_thread_pool_free (GThreadPool *pool,
|
||||||
gpointer data,
|
gboolean immediate,
|
||||||
GError **error);
|
gboolean wait_);
|
||||||
void g_thread_pool_set_max_threads (GThreadPool *pool,
|
gboolean g_thread_pool_push (GThreadPool *pool,
|
||||||
gint max_threads,
|
gpointer data,
|
||||||
GError **error);
|
GError **error);
|
||||||
gint g_thread_pool_get_max_threads (GThreadPool *pool);
|
guint g_thread_pool_unprocessed (GThreadPool *pool);
|
||||||
guint g_thread_pool_get_num_threads (GThreadPool *pool);
|
void g_thread_pool_set_sort_function (GThreadPool *pool,
|
||||||
guint g_thread_pool_unprocessed (GThreadPool *pool);
|
GCompareDataFunc func,
|
||||||
void g_thread_pool_free (GThreadPool *pool,
|
gpointer user_data);
|
||||||
gboolean immediate,
|
gboolean g_thread_pool_set_max_threads (GThreadPool *pool,
|
||||||
gboolean wait_);
|
gint max_threads,
|
||||||
void g_thread_pool_set_max_unused_threads (gint max_threads);
|
GError **error);
|
||||||
|
gint g_thread_pool_get_max_threads (GThreadPool *pool);
|
||||||
|
guint g_thread_pool_get_num_threads (GThreadPool *pool);
|
||||||
|
|
||||||
|
void g_thread_pool_set_max_unused_threads (gint max_threads);
|
||||||
gint g_thread_pool_get_max_unused_threads (void);
|
gint g_thread_pool_get_max_unused_threads (void);
|
||||||
guint g_thread_pool_get_num_unused_threads (void);
|
guint g_thread_pool_get_num_unused_threads (void);
|
||||||
void g_thread_pool_stop_unused_threads (void);
|
void g_thread_pool_stop_unused_threads (void);
|
||||||
void g_thread_pool_set_sort_function (GThreadPool *pool,
|
void g_thread_pool_set_max_idle_time (guint interval);
|
||||||
GCompareDataFunc func,
|
|
||||||
gpointer user_data);
|
|
||||||
void g_thread_pool_set_max_idle_time (guint interval);
|
|
||||||
guint g_thread_pool_get_max_idle_time (void);
|
guint g_thread_pool_get_max_idle_time (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
Reference in New Issue
Block a user