summaryrefslogtreecommitdiff
path: root/gio/gasynchelper.c
AgeCommit message (Collapse)Author
2017-11-01gio/gasynchelper.c: fix cast from pointer to smaller int type on win64Tom Schoonjans
https://bugzilla.gnome.org/show_bug.cgi?id=777310
2017-05-29gio/: LGPLv2+ -> LGPLv2.1+Sébastien Wilmet
Sub-directories inside gio/ already processed in a previous commit: - fam/ - gdbus-2.0/ (which contains only codegen/) - gvdb/ - inotify/ - tests/ - win32/ - xdgmime/ Other sub-directories inside gio/: - completion/: no license headers - kqueue/: not LGPL, BSD-style license https://bugzilla.gnome.org/show_bug.cgi?id=776504
2014-01-31Updated FSF's addressDaniel Mustieles
2013-07-13gio: port unix streams to GUnixFDSourceDan Winship
The unix input/output streams were using a gio-only source type that was mostly identical to GUnixFDSource. Get rid of that source type and just use GUnixFDSource instead. https://bugzilla.gnome.org/show_bug.cgi?id=701511
2013-07-13gsourceclosure: use g_cclosure_marshal_genericDan Winship
For the glib-defined source types, and any source type that defines a closure callback but not a closure marshal, use g_cclosure_marshal_generic. And then remove all the other remaining source closure marshals. https://bugzilla.gnome.org/show_bug.cgi?id=701511
2012-08-20win32: make gio stream cancellableMarc-André Lureau
v2: - fix cancellation of concurrent readers - replace g_assert() usage with g_warn_if_fail() v3: - fix indentation - fix loop code to not leak (silly me) https://bugzilla.gnome.org/show_bug.cgi?id=679288
2012-08-20win32: use overlapped events for streamsMarc-André Lureau
Any file handle created with FLAG_OVERLAPPED must have ReadFile()/WriteFile() called with an OVERLAPPED structure. Failing to do so will give unspecified results, invalid read/write or corruption. Without FLAG_OVERLAPPED, it is not possible to read and write concurrently, even with two seperate threads, created by 2 input and output gio streams. Also, only with FLAG_OVERLAPPED may an IO operation be asynchronous and thus be cancellable. We may want to call ReOpenFile() to make sure the FLAG is set, but this API is only available since Vista+. According to MSDN doc, adding the OVERLAPPED argument for IO operation on handles without FLAG_OVERLAPPED is allowed, and indeed the existing test still passes. v2: - update GetLastError() after _g_win32_overlap_wait_result () - split the unrelated ERROR_MORE_DATA handling https://bugzilla.gnome.org/show_bug.cgi?id=679288
2012-02-21docs: Fix typo GAsyncReady → GAsyncResultDavid King
Also GSimpleAsyncReady → GSimpleAsyncResult.
2011-10-18gio: Use G_VALUE_INITJavier Jardón
2011-09-06gio docs: lots more fixesRyan Lortie
2010-11-26GCancellable: add g_cancellable_create_source()Dan Winship
g_cancellable_create_source() returns a GSource that triggers when its corresponding GCancellable is cancelled. This can be used with g_source_add_child_source() to add cancellability to a source. Port gasynchelper's FDSource to use this rather than doing its own cancellable handling, and also fix up its callback argument order to be more normal. https://bugzilla.gnome.org/show_bug.cgi?id=634239
2010-11-26Implement closure-related methods for gio GSource typesDan Winship
Also, fix up the argument ordering on GFDSourceFunc https://bugzilla.gnome.org/show_bug.cgi?id=634239
2010-08-03Fix a possible deadlockMatthias Clasen
the FdSource was calling g_cancellable_disconnect while holding the main context lock, which is bad news if the ::cancelled handler is trying to get that lock to wake up the mainloop... Bug 586432
2010-07-07gio/: fully remove gioalias hacksRyan Lortie
2010-04-23GSocket: Merge the unix and windows socket sources togetherDan Winship
And remove the bits that were added to gasynchelper.c to support the previous unix socket source. part of https://bugzilla.gnome.org/show_bug.cgi?id=587898
2009-06-30Remove some unused codeDan Winship
2009-05-14Make GSocketSourceFunc return the GSocketAlexander Larsson
This is very useful when you have multiple sockets with sources.
2009-04-20Use g_cancellable_connect/disconnectAlexander Larsson
Use the new cancellable helper functions to avoid races. (#572844)
2008-06-22Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin
2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch svn path=/trunk/; revision=7092
2008-02-21Doc fixesMatthias Clasen
svn path=/trunk/; revision=6554
2007-12-18Fix up includes in section docsMatthias Clasen
svn path=/trunk/; revision=6149
2007-12-10http://mail.gnome.org/archives/gtk-devel-list/2007-October/msg00089.html15:08:59 Tim Janik
2007-12-10 15:08:59 Tim Janik <timj@imendio.com> * let g_warn_if_fail replace g_assert as discussed here: http://mail.gnome.org/archives/gtk-devel-list/2007-October/msg00089.html * fix bug #502498: Test framework assertion failures should follow gcc error format. * gmessages.h, gmessages.c: deprecated g_assert_warning() which is unused now. removed g_assert*() definitions whcih are provided by gtestutils.h now. added g_warn_if_reached() and g_warn_if_fail() which are recommended as g_assert/g_assert_not_reached replacements for non-test programs. added g_warn_message() to implement g_warn_*() macros. use emacs-next-error friendly formatting for file:line: for warnings. * gtestutils.h, gtestutils.c: use emacs-next-error friendly formatting. implement g_assert_not_reached() with g_assertion_message() and g_assert() in terms of g_assertion_message_expr() so we'll be able to provide assertion messages in test logs. * gkeyfile.c, gbookmarkfile.c: changed g_assert*() to g_warn_if_fail() or g_return_if_fail() where suitable. * gio/: changed g_assert to g_warn_if_fail. svn path=/trunk/; revision=6086
2007-11-29Coding style fixupsMatthias Clasen
svn path=/trunk/; revision=5993
2007-11-28Added. Added. Added. Added.Alexander Larsson
2007-11-28 Alexander Larsson <alexl@redhat.com> * Makefile.am: * abicheck.sh: Added. * makegioalias.pl: Added. * pltcheck.sh: Added. * gio.symbols: Added. * *.c: * inotify/*.c Initial work on adding symbol handling. * gvfs.h: Correct ifdef guard name * fam/Makefile.am: * inotify/Makefile.am: * xdgmime/Makefile.am: Include toplevel Makefile.decl svn path=/trunk/; revision=5972
2007-11-28Another round of trivial doc fixesMatthias Clasen
svn path=/trunk/; revision=5970
2007-11-27 Bumps documentation to 93% symbol coverage, touching most Andrew Walton
of the public files. Fixes broken function documentation prototypes. Fixes GCancellable inaccuracies. Removes unnecessary incomplete gtk-doc headers in private files. svn path=/trunk/; revision=5953
2007-11-26gio/ docs/reference/gio Merged gio-standalone into glib.Alexander Larsson
2007-11-26 Alexander Larsson <alexl@redhat.com> * Makefile.am: * configure.in: * gio-2.0-uninstalled.pc.in: * gio-2.0.pc.in: * gio-unix-2.0-uninstalled.pc.in: * gio-unix-2.0.pc.in: * gio/ * docs/reference/gio Merged gio-standalone into glib. * glib/glibintl.h: * glib/gutils.c: Export glib_gettext so that gio can use it Add P_ (using same domain for now) Add I_ as g_intern_static_string svn path=/trunk/; revision=5941