summaryrefslogtreecommitdiff
path: root/gio/tests/unix-streams.c
Commit message (Collapse)AuthorAgeFilesLines
* GUnixInput/OutputStream: fix blocking methods to always blockDan Winship2011-11-141-2/+22
| | | | | | | | | | | | | | | | Previously, if you created a GUnixInputStream or GUnixOutputStream from a non-blocking file descriptor, it might sometimes return G_IO_ERROR_WOULD_BLOCK from g_input_stream_read/g_output_stream_write, which is wrong. Fix that. (Use the GPollableInput/OutputStream methods if you want non-blocking I/O.) Also, add a test for this to gio/tests/unix-streams. Also, fix the GError messages to say "Error reading from file descriptor", etc instead of "Error reading from unix" (which was presumably from a bad search and replace job). https://bugzilla.gnome.org/show_bug.cgi?id=626866
* g_thread_new: never failRyan Lortie2011-10-131-2/+2
| | | | | Remove the GError argument from g_thread_new() and abort on failure. Introduce g_thread_try() for those who want to handle failure.
* thread: nuke the concept of 'joinable'Ryan Lortie2011-10-131-2/+2
| | | | | | | | And remove the 'joinable' argument from g_thread_new() and g_thread_new_full(). Change the wording in the docs. Clarify expectations for (deprecated) g_thread_create().
* Don't use deprecated GThread API in gio testsMatthias Clasen2011-10-101-3/+2
|
* Fix a possible deadlockMatthias Clasen2010-08-031-21/+1
| | | | | | | | 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
* Remove redundant includeMatthias Clasen2010-07-301-1/+0
|
* Work around deadlock in unix-streams testMatthias Clasen2010-07-301-1/+22
|
* Fix compilation warning: Initialize the variableJavier Jardón2009-11-171-1/+1
|
* Revert "Move gio tests from gio/tests/ to tests/gio/"Matthias Clasen2009-07-051-0/+256
| | | | | | This reverts commit 2262d76b33094304ece0d0d9cd5920682599a49b. Move GIO tests back to where they belong.
* Move gio tests from gio/tests/ to tests/gio/Benjamin Otte2009-07-011-256/+0
| | | | | This avoids getting tests built every time when working on libgio and running make in the gio/ directory.
* fix warnings from gcc compilation with my mad CFLAGSBenjamin Otte2009-06-291-2/+2
|
* Bug 505361 - gunixinputstream.c assumes poll() availableDan Winship2008-09-261-0/+256
Bug 509446 - portable blocking gio cancellation * gcancellable.c (g_cancellable_make_pollfd): New method to make a GPollFD for a cancellable (which is slightly more complicated on Windows than Unix). * gunixinputstream.c (g_unix_input_stream_read): * gunixoutputstream.c (g_unix_output_stream_write): Use g_cancellable_make_pollfd() and g_poll() rather than using poll() directly. * tests/unix-streams.c: test of GUnixInputStream, GUnixOutputStream, and GCancellable. svn path=/trunk/; revision=7553