From: Sebastian Wilhelmi Date: Thu, 2 Dec 1999 14:32:41 +0000 (+0000) Subject: Removed G_THREADS_IMPL_NSPR. Shouldn't be used anyway. X-Git-Tag: GLIB_1_3_1~113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1bbb7f07fb237a8df5519bed4c7fb424f69d2ae;p=platform%2Fupstream%2Fglib.git Removed G_THREADS_IMPL_NSPR. Shouldn't be used anyway. 1999-12-02 Sebastian Wilhelmi * glib-sections.txt, tmpl/threads.sgml: Removed G_THREADS_IMPL_NSPR. Shouldn't be used anyway. * glib-overrides.txt: New file, that makes most of the thread related macros look like functions. * Makefile.am: Added glib-overrides.txt to EXTRA_DIST. * tmpl/threads.sgml: Minor updates. --- diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index dcff5aa..ec99045 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,15 @@ +1999-12-02 Sebastian Wilhelmi + + * glib-sections.txt, tmpl/threads.sgml: Removed + G_THREADS_IMPL_NSPR. Shouldn't be used anyway. + + * glib-overrides.txt: New file, that makes most of the thread + related macros look like functions. + + * Makefile.am: Added glib-overrides.txt to EXTRA_DIST. + + * tmpl/threads.sgml: Minor updates. + Tue Aug 17 08:42:17 1999 Owen Taylor * tmpl/datasets.sgml: Added missing diff --git a/docs/reference/glib/Makefile.am b/docs/reference/glib/Makefile.am index 9ba90e0..0c4da62 100644 --- a/docs/reference/glib/Makefile.am +++ b/docs/reference/glib/Makefile.am @@ -37,7 +37,8 @@ install-data-local: EXTRA_DIST = \ $(DOC_MAIN_SGML_FILE) \ $(DOC_MODULE)-sections.txt \ - glib-decl.txt + glib-decl.txt \ + glib-overrides.txt dist-hook: mkdir $(distdir)/tmpl diff --git a/docs/reference/glib/glib-overrides.txt b/docs/reference/glib/glib-overrides.txt new file mode 100644 index 0000000..002bcfb --- /dev/null +++ b/docs/reference/glib/glib-overrides.txt @@ -0,0 +1,191 @@ +# This file makes most of the thread related macros look like +# functions, which they really were, if possible easy. + +# default thread implementation + + +G_THREADS_IMPL_POSIX +#define G_THREADS_IMPL_POSIX + + + +G_THREADS_IMPL_SOLARIS +#define G_THREADS_IMPL_SOLARIS + + + +G_THREADS_IMPL_NONE +#define G_THREADS_IMPL_NONE + + +# threads supported? + + +g_thread_supported +gboolean + + +# GMutex + + +g_mutex_new +GMutex * + + + +g_mutex_lock +void +GMutex *mutex + + + +g_mutex_trylock +gboolean +GMutex *mutex + + + +g_mutex_unlock +void +GMutex *mutex + + + +g_mutex_free +void +GMutex *mutex + + +# GStaticMutex + + +GStaticMutex + + + +G_STATIC_MUTEX_INIT +#define G_STATIC_MUTEX_INIT + + + +g_static_mutex_lock +void +GStaticMutex* mutex + + + +g_static_mutex_trylock +gboolean +GStaticMutex* mutex + + + +g_static_mutex_unlock +void +GStaticMutex* mutex + + + +g_static_mutex_get_mutex +GMutex * +GStaticMutex* mutex + + +# G_LOCK_* macros + + +G_LOCK_DEFINE +#define G_LOCK_DEFINE(name) + + + +G_LOCK_DEFINE_STATIC +#define G_LOCK_DEFINE_STATIC(name) + + + +G_LOCK_EXTERN +#define G_LOCK_EXTERN(name) + + + +G_LOCK +#define G_LOCK(name) + + + +G_UNLOCK +#define G_UNLOCK(name) + + + +G_TRYLOCK +#define G_TRYLOCK(name) + + +# GCond + + +g_cond_new +GCond* + + + +g_cond_signal +void +GCond *cond + + + +g_cond_broadcast +void +GCond *cond + + + +g_cond_wait +void +GCond *cond, GMutex *mutex + + + +g_cond_timed_wait +gboolean +GCond *cond, GMutex *mutex, GTimeVal *abs_time + + + +g_cond_free +void +GCond *cond + + +# GPrivate + + +g_private_new +GPrivate* +GDestroyNotify destructor + + + +g_private_get +gpointer +GPrivate *private_key + + + +g_private_set +void +GPrivate *private_key, gpointer data + + +# GStaticPrivate + + +G_STATIC_PRIVATE_INIT +#define G_STATIC_PRIVATE_INIT + + + + diff --git a/docs/reference/glib/glib-sections.txt b/docs/reference/glib/glib-sections.txt index f0ceaa8..63b1bcd 100644 --- a/docs/reference/glib/glib-sections.txt +++ b/docs/reference/glib/glib-sections.txt @@ -315,7 +315,6 @@ G_WIN32_MSG_HANDLE G_THREADS_ENABLED G_THREADS_IMPL_POSIX G_THREADS_IMPL_SOLARIS -G_THREADS_IMPL_NSPR G_THREADS_IMPL_NONE diff --git a/docs/reference/glib/glib/ChangeLog b/docs/reference/glib/glib/ChangeLog index dcff5aa..ec99045 100644 --- a/docs/reference/glib/glib/ChangeLog +++ b/docs/reference/glib/glib/ChangeLog @@ -1,3 +1,15 @@ +1999-12-02 Sebastian Wilhelmi + + * glib-sections.txt, tmpl/threads.sgml: Removed + G_THREADS_IMPL_NSPR. Shouldn't be used anyway. + + * glib-overrides.txt: New file, that makes most of the thread + related macros look like functions. + + * Makefile.am: Added glib-overrides.txt to EXTRA_DIST. + + * tmpl/threads.sgml: Minor updates. + Tue Aug 17 08:42:17 1999 Owen Taylor * tmpl/datasets.sgml: Added missing diff --git a/docs/reference/glib/glib/Makefile.am b/docs/reference/glib/glib/Makefile.am index 9ba90e0..0c4da62 100644 --- a/docs/reference/glib/glib/Makefile.am +++ b/docs/reference/glib/glib/Makefile.am @@ -37,7 +37,8 @@ install-data-local: EXTRA_DIST = \ $(DOC_MAIN_SGML_FILE) \ $(DOC_MODULE)-sections.txt \ - glib-decl.txt + glib-decl.txt \ + glib-overrides.txt dist-hook: mkdir $(distdir)/tmpl diff --git a/docs/reference/glib/tmpl/threads.sgml b/docs/reference/glib/tmpl/threads.sgml index 3e0f21f..0b577d1 100644 --- a/docs/reference/glib/tmpl/threads.sgml +++ b/docs/reference/glib/tmpl/threads.sgml @@ -32,12 +32,11 @@ that every thread has a private instance of (#GPrivate, Currently there is only as much thread support included in GLib as is -necessary to make GLib itself multithread safe. Future versions of -GLib might contain functions to actually create threads and the -like. For now the most portable way to create threads is to require -the macro #G_THREADS_IMPL_POSIX to be defined and use POSIX threads -then. This will work on almost all platforms (except most notably -Solaris). +necessary to make GLib itself multithread safe. Version 1.4 of GLib +will contain full thread support. For now the most portable way to +create threads is to require the macro #G_THREADS_IMPL_POSIX to be +defined and use POSIX threads then. This will work on almost all +platforms (except most notably Solaris and DCE threads.). @@ -73,15 +72,6 @@ This macro is defined, if the SOLARIS thread system is used. - - - -This macro is defined, if the NSPR thread implementation is used. -NSPR is the cross platform library of mozilla. - - - - @@ -501,11 +491,12 @@ give_me_next_number() example using the G_LOCK_* macros: Using the G_LOCK_* convenience macros +G_LOCK_DEFINE (current_number); + int give_me_next_number () { static int current_number = 0; int ret_val; - G_LOCK_DEFINE_STATIC (current_number); G_LOCK (current_number); ret_val = current_number = calc_next_number (current_number);