~registry/glib/glib-2-30

« back to all changes in this revision

Viewing changes to ChangeLog

  • Committer: Owen Taylor
  • Date: 1998-12-15 05:28:02 UTC
  • Revision ID: git-v1:931ea952650b013b834041b91b0c37a748ffd449
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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
1998-12-11  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
2
 
 
3
        * gthread/gthread-nspr.c, configure.in: Added new default thread
 
4
        implementation on top of the mozilla nspr library.
 
5
 
 
6
        * gmem.c, gmessaged.c, gthread/gthread.c, gthread/gthread-*.c:
 
7
        Changed GStaticMutex and GStaticPrivate in gmem.c and gmessages.c
 
8
        into GMutex and GPrivate resp. to make error reporting and use of
 
9
        gmem possible in most (not all, though) gthread functions. Also
 
10
        initialized the modules via new init functions.
 
11
 
 
12
        * configure.in: Fixed syntax bug in definition of type
 
13
        GStaticMutex.
 
14
 
 
15
        * gthread/testgthread.c: Updated to work with nspr, but see note
 
16
        there for remaining problems.
 
17
 
 
18
1998-12-10  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
19
 
 
20
        * gmutex.c, glib.h: Now abort, if a mutex/cond/private is
 
21
        allocated before the thread system is set up.
 
22
 
 
23
        * gthread/gthread.c (g_thread_init): Removed g_thread_try_init(),
 
24
        as it is not necessary. Changed the error message. Corrected logic
 
25
        for g_thread_use_default_impl.
 
26
 
 
27
        * gmutex.c (g_mutex_init): Keep the thread private data array
 
28
        after calling g_thread_init().
 
29
 
 
30
1998-12-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
31
 
 
32
        * gthread/testgthread.c (new_thread): Now also working for posix
 
33
        threads; (wait_thread): Now a better implementation, that does not
 
34
        use 100% CPU.
 
35
 
 
36
        * Made the thread related code follow GNU coding standard.
 
37
 
 
38
        * Made a comment (HOLDS:) above each function, that expects the
 
39
        given locks to be held.
 
40
 
 
41
        * Changed try_lock to trylock throughout.
 
42
 
 
43
        * glib.c: Eventually removed the #if 0'ed code for old GStaticMutex.
 
44
 
 
45
        * glib.c: Corrected g_trylock macro for G_DEBUG_LOCKS.
 
46
 
 
47
        * gmain.c (g_main_poll_add_unlocked): first take a new poll record
 
48
        form the poll_free_list.
 
49
                
 
50
        * gmem.c, gstrfuncs.c, gutils.c: Made it MT safe.
 
51
 
 
52
        * gthraed/*.c: Added copyright headers.
 
53
 
 
54
        * gthread/gthread-solaris.c: do not use g_log for errors, as g_log
 
55
        uses these module and endless recursions might happen, just use a
 
56
        plain fprintf(stderr,...).
 
57
 
 
58
        * gthread/gthread.c (g_thread_try_init): Call g_mutex_init().
 
59
 
 
60
        * gthread/testgthread.c: updated test program.
 
61
        
 
62
Tue Dec  8 18:49:56 1998  Owen Taylor  <otaylor@redhat.com>
 
63
 
 
64
        * Start at adding thread-safety. (mostly work
 
65
        of Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
 
66
 
 
67
        - configure.in now looks for a system thread implementation.
 
68
        Currently support is included for POSIX threads
 
69
        and Solaris threads. The default support is built
 
70
        into a separate library -lgthread.
 
71
 
 
72
        - The thread implementation can be modified by passing
 
73
        a vector of functions g_thread_init().
 
74
 
 
75
        - The default or supplied functions are used to
 
76
        implement a small set of thread functions for
 
77
        mutexes, condition variables, and thread-private
 
78
        data.
 
79
 
 
80
        - GLib now uses these functions to provide thread
 
81
        safety. (In the sense that all global static
 
82
        data is locked... individual structures must still
 
83
        be locked by the caller.)
 
84
 
1
85
Sat Dec 12 19:08:59 1998  Tim Janik  <timj@gtk.org>
2
86
 
3
87
        * configure.in: always define G_HAVE_INLINE if __cplusplus is