da0e7e81c16cba8d64014081487466a73a4c9506 |
|
10-Feb-2008 |
Matthias Clasen <mclasen@redhat.com> |
/bin/ksh can't handle a for-loop with no arguments, so add a "." for when 2008-02-09 Matthias Clasen <mclasen@redhat.com> * Makefile.decl: /bin/ksh can't handle a for-loop with no arguments, so add a "." for when $(SUBDIRS) is empty. * glib/tests/option-context.c: * glib/tests/testing.c: * gthread/gthread-posix.c: * tets/testingbase64.c: * glib/gtester.c: * glib/gsequence.c: Portability fixes. (#515154) svn path=/trunk/; revision=6487
/external/bluetooth/glib/gthread/gthread-posix.c
|
7bfc60de2e83b263c35e645d4251bc55eaefec00 |
|
28-Jan-2008 |
Matthias Clasen <mclasen@redhat.com> |
Deprecate G_GNUC_(PRETTY)_FUNCTION. 2008-01-27 Matthias Clasen <mclasen@redhat.com> * glib/gmacros.h: Deprecate G_GNUC_(PRETTY)_FUNCTION. svn path=/trunk/; revision=6389
/external/bluetooth/glib/gthread/gthread-posix.c
|
4bbde50716bb9340d0f32459bac9d658b95c58a4 |
|
16-Jan-2007 |
Matthias Clasen <mclasen@redhat.com> |
Revert an accidental ABI break by moving gettime out of the 2007-01-16 Matthias Clasen <mclasen@redhat.com> * glib/gthread.h: * glib/gthread.c: * glib/glib.symbols: Revert an accidental ABI break by moving gettime out of the GThreadFunctions struct and making it a separate variable. (#397139, Joe Marcus Clarke) * gthread/*.c: Adapt. svn path=/trunk/; revision=5279
/external/bluetooth/glib/gthread/gthread-posix.c
|
a74d6b9582adfc98ecf9a595f339242ad1d87469 |
|
15-Jan-2007 |
Matthias Clasen <mclasen@redhat.com> |
Correct the gettime calculations once more. (#395203, Chris Wilson) 2005-01-15 Matthias Clasen <mclasen@redhat.com> * glib/gthread.c: * gthread/gthread-posix.c: Correct the gettime calculations once more. (#395203, Chris Wilson) svn path=/trunk/; revision=5262
/external/bluetooth/glib/gthread/gthread-posix.c
|
2c7dbe9c73c94ce2ffab2166a6fa5207c446ff2b |
|
12-Jan-2007 |
Matthias Clasen <mclasen@redhat.com> |
Fix errors in the recently moved time calculations. (#395203, Chris 2007-01-12 Matthias Clasen <mclasen@redhat.com> * gthread/gthread-posix.c: * glib/gtimer.c: * glib/gthread.c: Fix errors in the recently moved time calculations. (#395203, Chris Wilson) svn path=/trunk/; revision=5244
/external/bluetooth/glib/gthread/gthread-posix.c
|
cf7dcc4f38de65245382764daed6cb79f9be053a |
|
08-Jan-2007 |
Matthias Clasen <mclasen@redhat.com> |
Don't use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is defined. 2007-01-08 Matthias Clasen <mclasen@redhat.com> * gthread/gthread-posix.c (g_thread_impl_init): Don't use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is defined. (#394150) svn path=/trunk/; revision=5230
/external/bluetooth/glib/gthread/gthread-posix.c
|
541462ab1e942ea02dd7d2e6dbcf0d02ad2c88de |
|
08-Jan-2007 |
Matthias Clasen <mclasen@redhat.com> |
Don't link glib against libpthread. (#393812) 2007-01-07 Matthias Clasen <mclasen@redhat.com> Don't link glib against libpthread. (#393812) * configure.in: Link gthread against librt, not glib itself. * glib/gthread.h: * glib/gthread.c: Add a new thread function, gettime. * glib/gtimer.c: Use gettime instead of directly working with the various system interfaces. * gthread/gthread-impl.c: * gthread/gthread-posix.c: * gthread/gthread-win32.c: Implement gettime. svn path=/trunk/; revision=5227
/external/bluetooth/glib/gthread/gthread-posix.c
|
685da6b099bc4bfb6f93719eda3f4927a9a6e57b |
|
11-May-2006 |
Sebastian Wilhelmi <wilhelmi@google.com> |
Prevent calling into g_cond_wait resp. g_mutex_lock/unlock directly to 2006-05-10 Sebastian Wilhelmi <wilhelmi@google.com> * gthread/gthread-posix.c, gthread/gthread-win32.c: Prevent calling into g_cond_wait resp. g_mutex_lock/unlock directly to avoid recursions into the errorcheking mutex code (and out of principle anyway). (#335198, Chris Wilson)
/external/bluetooth/glib/gthread/gthread-posix.c
|
307391459ddd322bccee190d8ded32fb462e8c50 |
|
10-May-2006 |
Sebastian Wilhelmi <wilhelmi@google.com> |
Use canonical include form for internal headers. config.h is always there. 2006-05-09 Sebastian Wilhelmi <wilhelmi@google.com> * glib/gprintf.c, glib/gspawn-win32.c, glib/gutf8.c, gthread/gthread-impl.c, gthread/gthread-posix.c, gthread/gthread-win32.c: Use canonical include form for internal headers. config.h is always there.
/external/bluetooth/glib/gthread/gthread-posix.c
|
f15bb122cec96ec2a7744f276821d65478b5e695 |
|
09-Jun-2005 |
Matthias Clasen <mclasen@redhat.com> |
Allow setstacksize to fail. (#304790, Michael Banck) 2005-06-09 Matthias Clasen <mclasen@redhat.com> * gthread-posix.c (g_thread_create_posix_impl): Allow setstacksize to fail. (#304790, Michael Banck)
/external/bluetooth/glib/gthread/gthread-posix.c
|
286d84fcb015da87985c6d2d996d76960322b36d |
|
01-Nov-2004 |
Matthias Clasen <mclasen@redhat.com> |
glib/gdebug.h glib/gutils.c gobject/gtype.c gthread/gthread-posix.c 2004-11-01 Matthias Clasen <mclasen@redhat.com> * glib/gconvert.c: * glib/gdebug.h * glib/gutils.c * gobject/gtype.c * gthread/gthread-posix.c * tests/timeloop-closure.c * tests/timeloop.c: Fix sparse warnings. (#157014, Kjartan Maraas)
/external/bluetooth/glib/gthread/gthread-posix.c
|
d4407e38fae560bae6a66dd9ae5b2f58b9d89134 |
|
04-Nov-2002 |
Owen Taylor <otaylor@redhat.com> |
Include config.h so DISABLE_MEMPOOLS actually has an effect. (#96437, Mon Nov 4 14:41:48 2002 Owen Taylor <otaylor@redhat.com> * glib/gbsearcharray.c: Include config.h so DISABLE_MEMPOOLS actually has an effect. (#96437, Morten Welinder) * tests/uri-test.c: Include <config.h> Mon Nov 4 14:42:36 2002 Owen Taylor <otaylor@redhat.com> * gtype.c gsignal.c gvaluearray.c: Include config.h so DISABLE_MEMPOOLS actually has an effect. (#96437, Morten Welinder) * gsignal.c: Conditionalize definition of g_handler_ts on DISABLE_MEM_POOLS (#96437) Mon Nov 4 14:45:24 2002 Owen Taylor <otaylor@redhat.com> * gthread-posix.c gthread-solaris.c: Include <config.h>
/external/bluetooth/glib/gthread/gthread-posix.c
|
3faf95913da623c030ceac66f74f1e1664666e01 |
|
06-Aug-2002 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Set the normal PID surrogate priority according to getpid() to avoid 2002-08-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib/gthread.c: Set the normal PID surrogate priority according to getpid() to avoid errors for niced processes. (#86116) * gthread/gthread-impl.c, gthread/gthread-posix.c, gthread/gthread-solaris.c: Do the same for the posix/dce implementation. Solaris still needs to set priority of the main thread, because all unbound threads will schedule according to that value and it defaults to 0 (the minimal value).
/external/bluetooth/glib/gthread/gthread-posix.c
|
5bbea163f23cab321fc9b7f4add27ffaf5437d0c |
|
10-Mar-2002 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Do a comparison, not an assignment, stupid! Spotted by Daniel Elstner 2002-03-10 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gthread-posix.c (g_thread_create_posix_impl): Do a comparison, not an assignment, stupid! Spotted by Daniel Elstner <daniel.elstner@gmx.net>.
/external/bluetooth/glib/gthread/gthread-posix.c
|
f8f4c3778a11dc7de6d37dc8e24e665764cd98e6 |
|
19-Sep-2001 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Add thread_equal function to allow for platform defined function to 2001-09-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib/gthread.h (GThreadFunctions): Add thread_equal function to allow for platform defined function to compare two threads. * glib/gthread.c: Use g_thread_functions_for_glib_use.thread_equal when non-NULL instead of ==. * gthread/gthread-posix.c: Add g_thread_equal_posix_impl and add to the function vector g_thread_functions_for_glib_use_default. * gthread/gthread-solaris.c, gthread/gthread-win32.c: Add NULL as equal function, as on those two platforms you don't need an equal function.
/external/bluetooth/glib/gthread/gthread-posix.c
|
4d7747a58e5f5fa8f494b2b78d6f2047022375f1 |
|
08-May-2001 |
Tim Janik <timj@gtk.org> |
don't g_assert() the user specified time, but g_return_val_if_fail() here. Fri May 4 04:14:45 2001 Tim Janik <timj@gtk.org> * gthread-posix.c (g_cond_timed_wait_posix_impl): don't g_assert() the user specified time, but g_return_val_if_fail() here.
/external/bluetooth/glib/gthread/gthread-posix.c
|
72cab5027f3b61424261a24ef96f0bc92fedd182 |
|
03-Apr-2001 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Added special case for priorities on FreeBSD. Thanks to David Reid 2001-04-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gthread-posix.c: Added special case for priorities on FreeBSD. Thanks to David Reid <dreid@jetnet.co.uk> for the info. * gthread-impl.c: Made two macros safe with ().
/external/bluetooth/glib/gthread/gthread-posix.c
|
efb2e89e07fc6bf0c1ac71e7750e99bc8f3f6119 |
|
15-Feb-2001 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Reverted the changes necessary to enlarge the system thread for 2001-02-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * acconfig.h, configure.in: Reverted the changes necessary to enlarge the system thread for G_THREAD_USE_PID_SURROGATE. * gthread.c: Now implement G_THREAD_USE_PID_SURROGATE in gthread.c instead of gthread/gthread-posix.c. While the latter has the advantage, that it is conceptually cleaner, it makes g_thread_self_posix_impl _very_ slow and that hurts GStaticRecMutex and other things. So the new version is less clean, but faster. * gthread-posix.c: Removed the G_THREAD_USE_PID_SURROGATE implementation, which is now in gthread.c.
/external/bluetooth/glib/gthread/gthread-posix.c
|
b1d840c20a27dd756bd7bd5877631cb8acae1c62 |
|
03-Jan-2001 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Made g_thread_min_stack_size static. 2001-01-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gthread-solaris.c, gthread-posix.c: Made g_thread_min_stack_size static. 2CVS: ----------------------------------------------------------------------
/external/bluetooth/glib/gthread/gthread-posix.c
|
a3036a5bd2119e53bd90e9daa6182e9d26538879 |
|
21-Nov-2000 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Add a surrogate for thread priorities using PID niceness for systems with 2000-11-21 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in: Add a surrogate for thread priorities using PID niceness for systems with no thread priorities and different PIDs for threads of the same process (most notably: Linux). Define G_THREAD_USE_PID_SURROGATE in that case, as used by gthread-posix.c. Also make the system thread bigger by sizeof (long) to contain the thread's PID. * gfileutils.c: Include stdlib.h for mkstemp prototype. * gthread.c: Add priority range checks to the affected functions. * gthreadpool.c: Remove unused variable. * gthread-impl.c, gthread-posix.c, gthread-solaris.c: Removed g_thread_map_priority function in favour of the g_thread_priority_map array. Initialize the array with PRIORITY_{...}_VALUE, if available and interpolate beetween the bounds if .._NORMAL_.. and .._HIGH_.. are not available. * gthread-posix.c: If we should use the PID niceness as a surrogate for thread priorities (G_THREAD_USE_PID_SURROGATE is defined), then disable normal priority handling and use PIDs and setpriority() instead. Depends on the thread to write its PID into the place after the thread id right after thread creation.
/external/bluetooth/glib/gthread/gthread-posix.c
|
b9731eb8616acf48f5a4c73568432872e6c5e08e |
|
15-Nov-2000 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Check for the sched.h header and include it on gthread/gthread-posix.c if 2000-11-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in: Check for the sched.h header and include it on gthread/gthread-posix.c if available. * gthread-posix.c: Include <sched.h> if available. * configure.in: Add -D_POSIX4_DRAFT_SOURCE to GTHREAD_COMPILE_IMPL_DEFINES. Also add -D_POSIX4A_DRAFT10_SOURCE to G_THREAD_CFLAGS. Really deploy GTHREAD_COMPILE_IMPL_DEFINES, when searching for thread libs. Look for sched_* functions in -lrte as well. All of that is necessary on DG/UX. * configure.in: Use AC_TRY_COMPILE instead of AC_EGREP_HEADERS in various places to make it work more reliable, to make it accept macros instead of functions etc. * configure.in: Replace some NULL's for checks with 0 to make it work without stdio.h everywhere. * configure.in, gutils.c: changed the test for getpwuid_r to first test for a posix version and then for a non-posix version. No code change in gutils.c. Again this change deals better with getpwuid_r being a macro and not a function. Most of the above with kind help from Tethys <tet@isengard.europe.dg.com>. This fixes Bug #13403.
/external/bluetooth/glib/gthread/gthread-posix.c
|
b13320f78ba3b484a26b6430152b35aaac24ff10 |
|
25-Oct-2000 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Add @GLIB_DEBUG_FLAGS@ to INCLUDES for accessing -DG_ENABLE_DEBUG as 2000-10-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * Makefile.am : Add @GLIB_DEBUG_FLAGS@ to INCLUDES for accessing -DG_ENABLE_DEBUG as needed in gthread-posix.c. * gthread-posix.c: Revamped error handling for native thread function calls. Now EPERM errors are ignored for some commands and only a warning message is output once (at first occurrence).
/external/bluetooth/glib/gthread/gthread-posix.c
|
7633908c9396ff0b45d3f09c898781adb4caab84 |
|
29-Sep-2000 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Added errorcheck mutexes. These are activated through the preprocessor 2000-09-29 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in, glib.h: Added errorcheck mutexes. These are activated through the preprocessor symbol G_ERRORCHECK_MUTEXES. Need to add an extra word to StaticMutex in order to achieve this. g_(static_)mutex_* functions instrument the mutex operations with mutex name and location, when compiled with -DG_ERRORCHECK_MUTEXES. g_thread_init activates the errorcheck mutexes, when compiled with -DG_ERRORCHECK_MUTEXES. * gthread/gthread-impl.c: Added errorcheck mutexes. New exported function g_thread_init_with_errorcheck_mutexes, which is called instead of g_thread_init, when compiled with -DG_ERRORCHECK_MUTEXES. New static functions g_mutex_(new|lock|trylock|unlock|free)_errorcheck_impl to implement errorcheck mutexes. * gthread/gthread-posix.impl.c, gthread/gthread-solaris-impl.c: Define the size of a mutex.
/external/bluetooth/glib/gthread/gthread-posix.c
|
ef2dcd6265bcd52a24fc12cfa8f769f899e13653 |
|
06-Sep-2000 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
s/G_MICROSEC/G_USEC_PER_SEC/ 2000-09-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib.h, gtimer.c, tests/thread-test.c: s/G_MICROSEC/G_USEC_PER_SEC/ * gthread/gthread-posix.c, gthread/gthread-solaris.c: s/G_MICROSEC/G_USEC_PER_SEC/ and s/G_NANOSEC/G_NSEC_PER_SEC/
/external/bluetooth/glib/gthread/gthread-posix.c
|
4d1cb41ef99377ca1d9708a72dfc2f1df38cf685 |
|
01-Sep-2000 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Use GError to report errors as well. 2000-09-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gthread-solaris.c (g_thread_create_solaris_impl): Use GError to report errors as well.
/external/bluetooth/glib/gthread/gthread-posix.c
|
64bbfbb6dae9a6f9f5b839b85beb42c3d7f2a790 |
|
01-Sep-2000 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Include gerror.h before it is used for some g_thread_* functions. 2000-09-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib.h: Include gerror.h before it is used for some g_thread_* functions. * gthread.c, gthreadpool.c, glib.h: Enable error reporting for thread creation, namly for g_thread_create, g_thread_pool_new, g_thread_pool_push and g_thread_pool_set_max_threads. * tests/thread-test.c, tests/threadpool-test.c: Adapted accordingly. * gthread-posix.c (g_thread_create_posix_impl): Use GError to report errors.
/external/bluetooth/glib/gthread/gthread-posix.c
|
c9bd7542e1a28ba9de60048361c0a97d251833e7 |
|
26-Jul-2000 |
Tim Janik <timj@gtk.org> |
applied patch from Andreas Persenius <ndap@swipnet.se> that updates the Wed Jul 26 12:59:31 2000 Tim Janik <timj@gtk.org> * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that updates the license headers to the GNU Lesser General Public License, as well as updating the copyright year to 2000.
/external/bluetooth/glib/gthread/gthread-posix.c
|
68c4ed996f6dfbdc28d834f34b0f19c6f97f5877 |
|
20-Mar-2000 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Forgot a '}' in a macro for DCE-threads. Thanks to Karl Nelson 2000-03-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gthread-posix.c (posix_check_for_error): Forgot a '}' in a macro for DCE-threads. Thanks to Karl Nelson <kenelson@ece.ucdavis.edu> for pointing that out.
/external/bluetooth/glib/gthread/gthread-posix.c
|
5e7134375eea0543c998715e03a458411906e89c |
|
17-Mar-2000 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Added the missing POSIX_NO_YIELD and POSIX_NO_PRIORITIES warning messages. 2000-03-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in: Added the missing POSIX_NO_YIELD and POSIX_NO_PRIORITIES warning messages. * configure.in: Use AC_TRY_RUN instead of AC_TRY_LINK, to test for real thread support. On solaris pthread_create can be linked to even in -lc, but it doesn't work then. * configure.in: Don't use priorities for threads, when the minimal/maximal priorities couldn't be determined at configure time. * configure.in, gthread.c: Always define GSystemThread in glibconfig.h to represent a system thread. * configure.in: Do not use native recursive threads, when possibe. We use some features, that they do not expose (namely the depth counter). * glib.h, gthread.c: Redefined GStaticRecMutex. The functions are now implemented in a different way, which should be way faster. Alsothere are now functions g_static_rec_mutex_unlock_full and g_static_rec_mutex_lock_full to leave/enter a recursive mutex completly. * gthread.c (g_thread_self): Do not test the system_thread to be non-zero to speed things up. * gthread.c (g_mutex_init): Therefore set the system_thread of the main thread here. * tests/thread-test.c: Rerun all tests once again, but this time we fool the system into thinking, that the available thread system is not native, but userprovided. * gthread/gthread-posix.c: Don't use priorities for threads, when the minimal/maximal priorities couldn't be determined at configure time. * gthread/gthread-posix.c: Don't check for errors, when setting the scope of a tread to system, as some posix implementations can't do that and we don't want the thing to fail because of that.
/external/bluetooth/glib/gthread/gthread-posix.c
|
ac6c1d7c59fcb07190d6e2ab69ff704b70b4c21c |
|
22-Feb-2000 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
check for sysconf (_SC_THREAD_STACK_MIN), which returns the minimal stack 2000-02-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gthread-posix.c, gthread-solaris.c: check for sysconf (_SC_THREAD_STACK_MIN), which returns the minimal stack size for new threads. Patch from Soeren Sandmann <sandmann@daimi.au.dk>.
/external/bluetooth/glib/gthread/gthread-posix.c
|
f0f028abd2df8255a68165c11d22e0433b600fdf |
|
16-Nov-1999 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Changed the prototype of thread_create and thread_self to return the 1999-11-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gthread-posix.c, gthread-solaris.c: Changed the prototype of thread_create and thread_self to return the system thread into provided memory instead of a return value. This is necessary, as HPUX has a pthread_t, that is bigger than the biggest integral type there. Made some more functions static. * gthread-posix.c: Small fixes for DCE threads: Detaching has to be done after thread creation for DCE.
/external/bluetooth/glib/gthread/gthread-posix.c
|
be80f9a106b1560447a7312480045960e521e728 |
|
21-Jun-1999 |
Tor Lillqvist <tml@src.gnome.org> |
Update the pthreads snapshot version we want. Advice how to hand-expand * README.win32: Update the pthreads snapshot version we want. Advice how to hand-expand the makefile.*.in files. * config.h.win32.in: Define values needed by Sebastian Wilhelmi's new thread stuff. * glib.def: Add new functions. * glibconfig.h.win32.in: Update the pthreads snapshot version. Fix typo. * gthread.c: Include config.h, guard inclusion of unistd.h. When using gcc on Win32, g_thread_functions_for_glib_use must be marked for export here, too. * gtimer.c: Implement g_usleep on native Win32 using Sleep (which only has millisecond granularity, though). * makefile.cygwin.in * makefile.msc.in: Update pthreads snapshot version. File name changes. Remove testgthread. * tests/makefile.cygwin.in * tests/makefile.msc.in: Add thread-test. Link with gthread lib. * gthread-posix.c: Guard pthread_attr_setscope call with test for _POSIX_THREAD_PRIORITY_SCHEDULING, which should be defined in a <pthread.h> that supports that feature.
/external/bluetooth/glib/gthread/gthread-posix.c
|
90f6cc9bf2453e5da385b2d547704091dd8afbb8 |
|
17-Jun-1999 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Completed the thread support in GLib. Thread creation, prioritizing 1999-06-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in, acglib.m4, acconfig.h, glib.h, gthread.c: Completed the thread support in GLib. Thread creation, prioritizing threads, yielding, joining threads as well as reader/writer locks and recursive mutexes are now in place. Please test heavily on your platform. It is so far tested on Linux/i386/pthreads, Solaris/Sparc/pthreads and Solaris/Sparc/solaristhreads. * gtimer.c, glib.h: Implement g_usleep (gulong microseconds) for thread safe sleeping. (sleep() is not MT-safe at all!) * gutils.c: Avoid compiler warning. * tests/Makefile.am, tests/thread-test.c: New program to test some aspects of the thread implementation. * gthread.c, Makefile.am: Renamed from gmutex.c to reflect the change of content. * configure.in: Purged all appearances of nspr. * gthread/gthread-posix.c, gthread-solaris.c: Added the native implementations for the GLib's extended thread support. * gthread/gthread-nspr.c: Removed for good. NSPR is nothing we would want to build upon. * gthread/gthread.c: Renamed to gthread-impl.c to avoid confusion with ../gthread.c (Formerly known as the file called gmutex.c) * gthread/testgthread.c: Removed. The new and much extended tests are in ../tests/thread-test.c. * gthread/Makefile.am: Changed to reflect the changes above.
/external/bluetooth/glib/gthread/gthread-posix.c
|
8b63644aabc2754aee20815b52e121b38dda9d3e |
|
31-Mar-1999 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Use the right default arguments for the construction of mutexes and conds 1999-03-31 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gthread/gthread-posix.c: Use the right default arguments for the construction of mutexes and conds for dce threads, these are &pthread_(cond|mutex)attr_default instead of NULL. Hint from D. Emilio Grimaldo Tunon <emilio_tunon@nl.compuware.com>.
/external/bluetooth/glib/gthread/gthread-posix.c
|
cc7f8896079710aeb11e65020fb68c166dd66f07 |
|
12-Mar-1999 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Test for posix threads first, then for dce threads. 1999-03-12 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in: Test for posix threads first, then for dce threads. * gthread/gthread-posix.c (g_private_get_posix_impl): Fixed typo for DCE implementation.
/external/bluetooth/glib/gthread/gthread-posix.c
|
4c63008b6cd4e3a9a81ff96ab195d23fc84a4515 |
|
11-Mar-1999 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Revamped the thread configure stuff. Now dce threads (old posix draft) are 1999-03-11 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in: Revamped the thread configure stuff. Now dce threads (old posix draft) are recogniced. This is necessary, because dce threads are in fact working quite differently from posix threads. Also changed the conditions for checking for MT safe functions a bit, because G_THREADS_IMPL_NONE still have to compile thread safe. * gthread/gthread-posix.c: Now handle both dce and posix threads. They are sufficently equal. NOTE: Please do not commit my change to glib-1-2/{acconfig.h,configure.in,config.h.win32} from 1999-03-03, as the current change will take care of that too.
/external/bluetooth/glib/gthread/gthread-posix.c
|
b9ef2b41db975061960e2217220668c2a5d563da |
|
24-Feb-1999 |
CST 1999 Shawn T. Amundson <amundson@gtk.org> |
inserted additional note to look for ChangeLog and AUTHORS file for a log Wed Feb 24 00:08:42 CST 1999 Shawn T. Amundson <amundson@gtk.org> * *.[ch]: inserted additional note to look for ChangeLog and AUTHORS file for a log of modifications.
/external/bluetooth/glib/gthread/gthread-posix.c
|
fa5d3b74b00bbe76f893b7a83b5a48084c015a18 |
|
08-Feb-1999 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Changed the test for getpwuid_r to exclude those systems (i.e. IRIX), that 1999-02-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in, acconfig.h: Changed the test for getpwuid_r to exclude those systems (i.e. IRIX), that set ENOSYS after the call. Test, if pthread_getspecific is posix like or something different, as on PCThreads. * gthread/gthread-posix.c (g_private_get_posix_impl): Use the HAVE_PTHREAD_GETSPECIFIC_POSIX macro to determine, which signature to use for pthread_getspecific.
/external/bluetooth/glib/gthread/gthread-posix.c
|
f477518c3af60dccfdd172abee0c7368e8f44189 |
|
17-Jan-1999 |
Tor Lillqvist <tml@src.gnome.org> |
Merge in current Win32 version. Almost no Unix code touched. * README.win32: More text. * config.h.win32 glibconfig.h.win32: Update to match the corresponding generated files on Unix. * makefile.msc: Update with new source files, and gthread library. Use the compiler flag -MD instead of using -D_DLL and "/nodefaultlib:libc msvcrt.lib" in the link phase. * glib.def: Include new functions, drop removed ones. * glib.h: Add comments about main loop and polling on Win32. (In general, it's only for the GIMP's use.) Add Win32 IO Channel functions. Remove the obsoleted old IO Channel stuff (which was in #if 0 already). * giowin32.c: New file. * gmain.c: Include config.h, conditionalize <sys/time.h> inclusion. Add g_poll implementation for Win32 (only for the GIMP's needs for now, it's hard or even impossible to be as clean and generic as on Unix). Implement g_get_current_time on Win32. If threads aren't supported, don't try to wake up main thread's loop. On Win32, use a semaphore and not a pipe to wake up the main loop. * gmessages.c: On Win32, allocate a console window if the standard output handle is invalid before writing to stdout, and reopen stdout to that console window. * giochannel.c: Conditionalize unistd.h inclusion. Some indentation cleanup. * gstrfuncs.c: Include <signal.h>. * gutils.c: On Win32, also check the HOMEDRIVE and HOMEPATH environment variables. * gmodule-dl.c gmodule-dld.c: In _g_module_build_path, don't add the "lib" prefix and ".so" or ".sl" suffix if already there. * gmodule-win32.c: Likewise for the ".dll" suffix. * gthread-posix.c: Conditionalize <sys/time.h> inclusion.
/external/bluetooth/glib/gthread/gthread-posix.c
|
77ccad4d2fe1dde7927a194fc53fa520cb20d059 |
|
17-Dec-1998 |
CST 1998 Shawn T. Amundson <amundson@gtk.org> |
giounix.c: s/g_main_poll_add/g_main_remove_add/g Wed Dec 16 22:32:13 CST 1998 Shawn T. Amundson <amundson@gtk.org> * glib.h: giounix.c: s/g_main_poll_add/g_main_remove_add/g s/g_main_poll_remove/g_main_remove_poll/g s/g_main_poll_add_unlocking/g_main_add_unlocking_poll/g (from Tim Janik) * gthread-posix.c: use g_free in mutex_free (from Tim Janik)
/external/bluetooth/glib/gthread/gthread-posix.c
|
2c30e8620fe66dedf35ee294bcd70051bde8685f |
|
15-Dec-1998 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
updated. 1998-12-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * Makefile.am (EXTRA_DIST): updated. * testgthread.c, gthread-*.c: Changed private to private_key to avoid problems when compiling with under C++.
/external/bluetooth/glib/gthread/gthread-posix.c
|
931ea952650b013b834041b91b0c37a748ffd449 |
|
15-Dec-1998 |
Owen Taylor <otaylor@src.gnome.org> |
This commit merges the glib-threads branch into the main branch. See the ChangeLog for details of the changes. In brief overview: - The set of threading functions can be set - A default implementation is provided in -lgthread - All static data structures are locked using these functions if g_thread_init() is called.
/external/bluetooth/glib/gthread/gthread-posix.c
|