summaryrefslogtreecommitdiff
path: root/gthread/testgthread.c
AgeCommit message (Collapse)AuthorFilesLines
1999-01-11add support for freebsd (-lc_r for thread foo) and make sure testgthread.c ↵Chris Toshok1-0/+6
compiles on platforms with rand_r.
1999-01-07Here we must replace getpwuid by getpwuid_r, but as I do not know how forSebastian Wilhelmi1-9/+18
1999-01-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gutils.c (g_get_any_init): Here we must replace getpwuid by getpwuid_r, but as I do not know how for now, I just made a FIXME note ;-) * gdate.c (g_date_set_time): localtime --> localtime_r to make it thread safe. * configure.in: We do not need to check for broken solaris mutex intitializer any longer. Provide a macro to show the used thread implementation. Not nice, but this is needed until thread support is completed here inside glib. * gthread/testgthread.c: conditionally compile according to the G_THREADS_IMPL_??? macros. (test_private_func): use rand_r instead of rand to make it thread safe.
1999-01-05ditch whitespace before GLIB_SYSDEFS #includes, the # needs to be inManish Singh1-4/+4
* configure.in: ditch whitespace before GLIB_SYSDEFS #includes, the # needs to be in column 1 * gthread/testgthread.c: cleanups * tests/node-test.c: #include unistd.h for exit() -Yosh
1998-12-18Changed the last pthread_cond_init to pthread_attr_init.Sebastian Wilhelmi1-1/+3
1998-12-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in (have_threads): Changed the last pthread_cond_init to pthread_attr_init. 1998-12-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * testgthread.c (new_thread): As a joinable thread seems to be the default on posix, leave the explicit setting out, as it causes problems on some older platforms.
1998-12-16version bump to 1.1.8, binary age 0, interface age 0.Tim Janik1-5/+5
Wed Dec 16 03:16:58 1998 Tim Janik <timj@gtk.org> * configure.in: version bump to 1.1.8, binary age 0, interface age 0. * glib.h: changed g_lock() to G_LOCK(), g_unlock() to G_UNLOCK() and g_trylock() to G_TRYLOCK(), since these are macros that expand to nothing with --disable-threads. changed G_LOCK_DEFINE() to G_LOCK_DECLARE() and introduced G_LOCK_DECLARE_STATIC() to achive the results of static G_LOCK_DECLARE(). changed semantics of g_thread_supported to g_thread_supported() so it can be used as a function like g_module_supported(). the actuall definition is still a macro that expands into a variable for performance reasons though. various indentation and coding style cleanups. * configure.in: added --enable-threads that defaults to yes. * gmutex.c: changed tests g_thread_supported to g_thread_supported (), changed variable settings of g_thread_supported to g_threads_got_initialized. garray.c: gcache.c: gdataset.c: gdate.c: ghash.c: glist.c: gmain.c: gnode.c: gslist.c: gstring.c: gtree.c: gutils.c: changed s/g_lock/G_LOCK/, s/g_unlock/G_UNLOCK/, s/static G_LOCK_DEFINE/G_LOCK_DECLARE_STATIC/.
1998-12-15updated.Sebastian Wilhelmi1-4/+4
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++.
1998-12-15Fixed --with-threads, small 64-bit probJeff Garzik1-1/+1
1998-12-15This commit merges the glib-threads branch into the mainOwen Taylor1-0/+200
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.