1. 08 Jan, 2007 1 commit
    • Matthias Clasen's avatar
      Don't link glib against libpthread. (#393812) · 541462ab
      Matthias Clasen authored
      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
      541462ab
  2. 28 Dec, 2006 1 commit
  3. 11 May, 2006 1 commit
  4. 09 May, 2006 1 commit
  5. 03 May, 2006 1 commit
  6. 11 Mar, 2006 1 commit
  7. 02 Mar, 2006 1 commit
    • Tor Lillqvist's avatar
      Increase to 100. 16 was rather low. (g_private_new_win32_impl): Can't use · e94abca5
      Tor Lillqvist authored
      2006-03-02  Tor Lillqvist  <tml@novell.com>
      
      	* gthread-win32.c (G_PRIVATE_MAX): Increase to 100. 16 was rather
      	low.
      	(g_private_new_win32_impl): Can't use g_error() here as
      	g_private_new() is called a few times by GLib internally before
      	the messaging system that g_error() requires is ready. Thanks to
      	Tim Janik for noticing. Just display a MessageBox() and abort()
      	instead.
      e94abca5
  8. 20 Feb, 2006 1 commit
    • Tor Lillqvist's avatar
      Make the implementation of GPrivate behave more closely as in POSIX · b4168ad3
      Tor Lillqvist authored
      2006-02-20  Tor Lillqvist  <tml@novell.com>
      
      	* gthread-win32.c (g_thread_exit_win32_impl): Make the
      	implementation of GPrivate behave more closely as in POSIX
      	threads: The value associacted with a GPrivate must be set to NULL
      	before calling the destructor. (The destructor gets the original
      	value as argument.)  A destructor might re-associate a non-NULL
      	value with some GPrivate. To deal with this, if after all
      	destructors have been called, there still are some non-NULL
      	values, the process is repeated. (#331367)
      b4168ad3
  9. 25 Nov, 2002 1 commit
  10. 27 Sep, 2001 1 commit
    • Bruno Haible's avatar
      When the sublangid is SUBLANG_DEFAULT, return the locale of the language's · 34462896
      Bruno Haible authored
      2001-09-24  Bruno Haible  <haible@clisp.cons.org>
      
      	* glib/gwin32.c (g_win32_getlocale): When the sublangid is
      	SUBLANG_DEFAULT, return the locale of the language's main country,
      	not a country-neutral locale. E.g. "en_US" instead of "en". Add
      	handling of LANG_SORBIAN. Fix typo for SUBLANG_CHINESE_SIMPLIFIED
      	(China == CN, CH == Switzerland). Ignore empty environment
      	variable values.
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/makefile.{mingw,msc}.in: Add localcharset.o. Just copy the
      	source file from libcharset and compile in this directory.
      
      	* glib/giochannel.c: Mark rest of g_set_error strings for
      	translation, too.
      
      	* glib/giowin32.c: Add some debugging output functions, call them
      	when debugging.
      	(create_events, g_io_win32_msg_write): Free message fetched with
      	g_win32_error_message ().
      	(g_io_win32_check): Indentation fixes.
      	(g_io_win32_fd_read,g_io_win32_sock_read): Don't always return
      	G_IO_STATUS_NORMAL. Do return G_IO_STATUS_EOF if we got 0 bytes,
      	like on Unix. This helps making the test programs run
      	successfully.
      
      	* glib/gmain.c (g_poll): Return the code ifdeffed out with
      	TEST_WITHOUT_THIS. Can't remember why it was ifdeffed out. Things
      	seem to work as previously with the code in place. Especially
      	spawn-test didn't work with the code ifdeffed out (Bug#61067).
      
      	* glib/grand.c (g_rand_new): Don't try to use /dev/urandom unless
      	on Unix.
      
      	* glib/gspawn-win32-helper.c (WinMain): Remove Sleep(10000)
      	accidentally left in.
      
      gthread:
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* gthread-win32.c: Use an extra level of indirection for GMutex.
      	It is now a pointer either to a pointer to a CRITICAL_SECTION
      	struct, or to a mutex HANDLE. This is needed in case the user
      	defines G_ERRORCHECK_MUTEXES. G_MUTEX_SIZE must correctly reflect
      	the size of *GMutex, but this used to vary depending on whether we
      	at run-time chose to use CRITICAL_SECTIONs or mutexes.
      	(g_mutex_free_win32_cs_impl, g_cond_free_win32_impl): Call
      	DeleteCriticalSection() when done with it.
      
      	* gthread-impl.c (g_thread_init_with_errorcheck_mutexes): Call
      	g_thread_impl_init() before accessing
      	g_thread_functions_for_glib_use_default, as the
      	g_thread_impl_init() function might modify it.
      
      po:
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* POTFILES.in: Add iochannel.c and giowin32.c.
      
      	* sv.po: Remove a bogus fuzziness indicator.
      34462896
  11. 19 Sep, 2001 1 commit
    • Sebastian Wilhelmi's avatar
      Add thread_equal function to allow for platform defined function to · f8f4c377
      Sebastian Wilhelmi authored
      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.
      f8f4c377
  12. 07 Jun, 2001 1 commit
  13. 22 May, 2001 2 commits
    • Sebastian Wilhelmi's avatar
      Also return TRUE for late arrived signals. Thanks to Steven Brooks · 896d677f
      Sebastian Wilhelmi authored
      
      2001-05-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gthread-win32.c (g_cond_wait_internal): Also return TRUE for
      	late arrived signals. Thanks to Steven Brooks
      	<umbrook0@cs.umanitoba.ca> for pointing out.
      896d677f
    • Sebastian Wilhelmi's avatar
      Removed POSIX_*. Defined G_THREAD_SOURCE to "gthread-win32.c". · d6ed8e36
      Sebastian Wilhelmi authored
      
      2001-05-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
              * config.h.win32.in: Removed POSIX_*. Defined G_THREAD_SOURCE to
              "gthread-win32.c".
      
              * glibconfig.h.win32.in: Define G_HAVE_ISO_VARARGS for gcc, don't
              know about MSC. Define G_THREADS_IMPL_WIN32 instead of
              G_THREADS_IMPL_POSIX and define the right static mutex macros and
              types.
      
              * build/win32/make.mingw (CXX): Removed PTHREAD defs. Added
      	-O2 -Wall to compile flags.
      
              * gthread/gthread-impl.c (g_thread_init): Move the thread
      	implementation initialization to before assigning
        	GThreadFuncs, which now is just struct assigned and not
      	memcpy'ed. Completed check for zero members of GThreadFuncs.
      
              * gthread/makefile.mingw: Don't link to pthread anymore.
      
              * gthread/gthread-win32.c: New file for native thread support for
              win32. Thanks to Hans Breuer <hans@breuer.org> to got me
              kickstarted.
      
              * gthread/Makefile.am: Also distribute gthread-win32.c.
      d6ed8e36