From f2a9c8883d53a47853f6af87a7d2765b24c463db Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Fri, 18 May 2001 08:49:29 +0000 Subject: [PATCH] Updated. 2001-05-18 Sebastian Wilhelmi * glib/glib-overrides.txt, glib/glib-sections.txt, glib/tmpl/thread_pools.sgml, glib/tmpl/threads.sgml: Updated. --- docs/reference/ChangeLog | 5 ++++ docs/reference/glib/glib-overrides.txt | 9 +++++++ docs/reference/glib/glib-sections.txt | 1 + docs/reference/glib/tmpl/thread_pools.sgml | 7 ------ docs/reference/glib/tmpl/threads.sgml | 40 ++++++++++++++++++++++++++++-- 5 files changed, 53 insertions(+), 9 deletions(-) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index a2c9946..d9f3a75 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2001-05-18 Sebastian Wilhelmi + + * glib/glib-overrides.txt, glib/glib-sections.txt, + glib/tmpl/thread_pools.sgml, glib/tmpl/threads.sgml: Updated. + 2001-05-09 Sebastian Wilhelmi * glib/tmpl/thread_pools.sgml, glib/tmpl/thread_pools.sgml: diff --git a/docs/reference/glib/glib-overrides.txt b/docs/reference/glib/glib-overrides.txt index 7068575..80fe2f1 100644 --- a/docs/reference/glib/glib-overrides.txt +++ b/docs/reference/glib/glib-overrides.txt @@ -98,6 +98,15 @@ GStaticMutex* mutex void + +g_thread_create +GThread * +GThreadFunc func +gpointer data, +gboolean joinable, +GError **error + + # G_LOCK_* macros diff --git a/docs/reference/glib/glib-sections.txt b/docs/reference/glib/glib-sections.txt index ad5118b..a842911 100644 --- a/docs/reference/glib/glib-sections.txt +++ b/docs/reference/glib/glib-sections.txt @@ -443,6 +443,7 @@ GThreadFunc GThreadPriority GThread g_thread_create +g_thread_create_full g_thread_self g_thread_join g_thread_set_priority diff --git a/docs/reference/glib/tmpl/thread_pools.sgml b/docs/reference/glib/tmpl/thread_pools.sgml index a23090d..f31bcc7 100644 --- a/docs/reference/glib/tmpl/thread_pools.sgml +++ b/docs/reference/glib/tmpl/thread_pools.sgml @@ -68,8 +68,6 @@ this struct. @func: the function to execute in the threads of this pool @user_data: the user data for the threads of this pool -@bound: are the threads of this pool bound? -@priority: the priority of the threads of this pool @exclusive: are all threads exclusive to this pool @@ -80,14 +78,9 @@ this struct. @func: @user_data: @max_threads: -@stack_size: -@bound: -@priority: @exclusive: @error: @Returns: - -@thread_func: diff --git a/docs/reference/glib/tmpl/threads.sgml b/docs/reference/glib/tmpl/threads.sgml index 91a9bbf..5dbbb17 100644 --- a/docs/reference/glib/tmpl/threads.sgml +++ b/docs/reference/glib/tmpl/threads.sgml @@ -220,7 +220,7 @@ you can however use it as if it was a function. Specifies the type of the @func functions passed to -g_thread_create(). +g_thread_create() or g_thread_create_full(). @data: data passed to the thread @@ -265,11 +265,38 @@ g_thread_join() is called for that thread. @func: the function executing in that thread @data: the argument to the function @joinable: is this thread joinable? -@bound: is this thread bound to a system thread? @priority: the priority of the thread +This function creates a new thread with the priority @priority. + + + +If @joinable is #TRUE, you can wait for this threads termination +calling g_thread_wait(). Otherwise the thread will just disappear, when +ready. + + + +The new thread executes the function @func with the argument +@data. If the thread was created successfully, it is returned. + + + +@error can be NULL to ignore errors, or non-NULL to report errors. The +error is set, if and only if the function returns #NULL. + + +@func: a function to execute in the new thread +@data: an argument to supply to the new thread +@joinable: should this thread be joinable? +@error: return location for error. +@Returns: the new #GThread on success + + + + This function creates a new thread with the priority @priority. The stack gets the size @stack_size or the default value for the current platform, if @stack_size is 0. @@ -305,6 +332,15 @@ default. + + +Only use g_thread_create_full(), when you really can't use +g_thread_create() instead. g_thread_create() does not take +@stack_size, @bound and @priority as arguments, as they should only be +used for cases, where it is inevitable. + + + @func: a function to execute in the new thread @data: an argument to supply to the new thread @stack_size: a stack size for the new thread -- 2.7.4