Major change in API for creating sources to handle multiple main loops
authorOwen Taylor <otaylor@redhat.com>
Tue, 5 Dec 2000 20:45:33 +0000 (20:45 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 5 Dec 2000 20:45:33 +0000 (20:45 +0000)
commite2fd4e2bd0589b159f87b491095565d16fac2789
tree45fd0ca3f6b665891a38e47713dda373dd13203f
parent5791ec5b8539e872343667dbdf190dd0d3e493ed
Major change in API for creating sources to handle multiple main loops

Tue Dec  5 12:23:04 2000  Owen Taylor  <otaylor@redhat.com>

        * gmain.[hc]: Major change in API for creating sources
to handle multiple main loops (GMainContext *).

GSources are now exposed as GSource * and implemented
with structure derivation.

* giochannel.[ch]: Changed vtable for GIOChannel to correspond
to the new mainloop API, add g_io_channel_create_watch().

* gtypes.h: Move GTimeVal here.

* gthread.h: Remove gmain.h include to avoid circularity.

        * giounix.c: Update for new GMain API.

* giowin32.c: Update for new GMain API. (No check for
proper compilation or working.)

* timeloop.c timeloop-basic.c: A benchmarking program for
the main loop comparing the main loop against a
hand-written (timeloop-basic.c) variant.

* tests/mainloop-test.c: New torture test of mainloop.

* docs/Changes-2.0.txt: Started. Added text about
changes to GMain.

* gmain.c (g_main_add_poll_unlocked): Initial fd->revents
to zero. (#8482, Benjamin Kahn)
37 files changed:
.cvsignore
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
Makefile.am
docs/Changes-2.0.txt [new file with mode: 0644]
gfileutils.c
giochannel.c
giochannel.h
giounix.c
giowin32.c
glib/Makefile.am
glib/gfileutils.c
glib/giochannel.c
glib/giochannel.h
glib/giounix.c
glib/giowin32.c
glib/gmain.c
glib/gmain.h
glib/gthread.h
glib/gtypes.h
gmain.c
gmain.h
gthread.h
gtypes.h
tests/.cvsignore
tests/Makefile.am
tests/mainloop-test.c [new file with mode: 0644]
tests/timeloop-basic.c [new file with mode: 0644]
tests/timeloop.c [new file with mode: 0644]
timeloop-basic.c [new file with mode: 0644]
timeloop.c [new file with mode: 0644]