| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
* examples/network/resolver.cc: Don't include config.h. It's not used.
* glib/glibmm/ustring.cc: Check if GLIBMM_SIZEOF_WCHAR_T is defined.
* tools/generate_wrap_init.pl.in:
* tools/gmmproc.in: Change '\@' to '\ @'. Meson's configure_file()
removes a backslash immediately before an at-sign.
|
|
|
|
|
| |
A few implicit conversions in tests/ have been kept. They are probably
deliberate, to test implicit conversion. Inspired by issue #65
|
|
|
|
|
|
|
| |
IN and OUT can be preprocessor macros. IO_ is added to the enumerator names.
E.g. Glib::IOCondition::IN is replaced by Glib::IOCondition::IO_IN.
These enumerator names will be the same as before we used enum class.
Bug 786717
|
|
|
|
| |
Bug 786824
|
| |
|
|
|
|
| |
Bug 86864
|
|
|
|
| |
Instead of Glib::RefPtr<>::cast_dynamic().
|
|
|
|
|
|
| |
Using Glib::ListHandler<>::list_to_array() and
Glib::ListHandler<>::list_to_vector() instead, and only in the
implementation instead of in the API.
|
|
|
|
| |
Noticed by cppcheck.
|
| |
|
| |
|
|
|
|
|
|
|
| |
* examples/network/socket-client.cc:
* examples/network/socket-server.cc: Store the thread pointer in a
std::unique_ptr. Then the thread is always joined and deleted. Stop the thread
immediately in case of error, or if the user requests end of transmission.
|
|
|
|
|
| |
Instead of using a lambda. As suggested by Kjell Ahlstedt:
https://bugzilla.gnome.org/show_bug.cgi?id=757674#c10
|
|
|
|
|
| |
As noticed by Kjell Ahlstedt:
https://bugzilla.gnome.org/show_bug.cgi?id=757674#c10
|
|
|
|
| |
Bug #757674
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* examples/network/socket-client.cc:
* examples/network/socket-server.cc: Use Glib::OptionEntry, OptionGroup,
OptionContext instead of the glib equivalents.
|
|
|
|
|
|
| |
* examples/network/socket-client.cc:
* examples/network/socket-server.cc: Add --use-ipv6 command line option.
Bug #734094.
|
|
|
|
|
|
| |
* examples/network/socket-client.cc: Use Gio::Socket::create_source().
* examples/network/socket-server.cc: Use Gio::signal_socket().connect().
Bug #725281.
|
|
|
|
|
|
| |
This reverts commit 9b0554e2c9deca2399e654e7984c9dfe3b67e387.
This was not meant to be in the master branch.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* glib/glibmm/arrayhandle.h:
* glib/glibmm/containers.h:
* glib/glibmm/listhandle.h:
* glib/glibmm/slisthandle.h:
* glib/glibmm/vectorutils.h: Use std::size_t and std::ptrdiff_t instead
of ::size_t and ::ptrdiff_t. Only the std versions are required to be
declared in <cstddef>.
* examples/network/resolver.cc:
* glib/glibmm/containerhandle_shared.h:
* glib/glibmm/helperlist.h:
* glib/glibmm/main.h:
* glib/glibmm/vectorutils.cc: Use std::size_t instead of ::size_t.
* glib/src/convert.hg: Use std::size_t instead of ::size_t in a comment.
* glib/glibmm/property.cc:
* glib/glibmm/ustring.h: Use std::ptrdiff_t instead of ::ptrdiff_t.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* glib/src/thread.ccg: create(): Call g_thread_try_new() instead of
g_thread_new(). Throw a Glib::ThreadError when appropriate, instead of calling
Glib::Error::throw_exception(), which would throw Glib::Threads::ThreadError.
* glib/src/threads.ccg:create(): Call g_thread_try_new() instead of
g_thread_new(). Remove parameter 'joinable'.
* glib/src/threads.hg: Remove parameter 'joinable'. Remove comments about
non-joinable threads and thread priorities.
* examples/network/resolver.cc:
* examples/network/socket-client.cc:
* examples/network/socket-server.cc:
* examples/thread/dispatcher.cc:
* examples/thread/dispatcher2.cc:
* examples/thread/thread.cc: Remove parameter 'joinable' in calls to
Glib::Threads::Thread::create(). Bug #640029.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* glib/src/filelist.am:
* glib/src/thread.[hg|ccg]: Deprecate the whole file, adding
deprecation doxygen comments to all API.
* glib/src/threads.[hg|ccg]: A new Threads namespace containing
equivalents for everything in thread.h, implemented using
only non-deprecated glib API. This was necessary because we had
to break the ABI to do this.
* glib/glibmm.h: Include threads.h
* glib/glibmm/main.[h|cc]: Added a wait() method overload that
takes the new types, deprecating the existing wait() method.
* examples/network/resolver.cc:
* examples/network/socket-client.cc:
* examples/network/socket-server.cc:
* examples/thread/dispatcher.cc:
* examples/thread/dispatcher2.cc:
* examples/thread/thread.cc:
* examples/thread/threadpool.cc:
* glib/glibmm/dispatcher.cc:
* glib/glibmm/exceptionhandler.cc:
* glib/glibmm/threadpool.[h|cc]: Use the new Glib::Threads::* types
instead of thread.h.
|
|
|
|
|
|
|
|
|
|
|
| |
* tests/Makefile.am:
* examples/Makefile.am: Disable deprecated API.
* examples/network/socket-client.cc:
* examples/network/socket-server.cc:
* examples/thread/dispatcher.cc:
* examples/thread/dispatcher2.cc:
* examples/thread/thread.cc: Remove calls to Glib::thread_init(), instead
calling Glib::init() where that side-effect was also intended.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac: Always use gthread-2.0 because there is now no advantage to
not doing that, because threading is now always enabled in glib.
Remove the separate GTHREAD* variables.
* glib/glibmm/Makefile.am:
* gio/giomm/Makefile.am:
* tests/Makefile.am:
* tools/Makefile.am:
* examples/Makefile.am: Remove use of the GTHREAD* variables..
* examples/network/resolver.cc: Remove the non-threading option and code that
uses it.
|
| |
|
|
|
|
|
|
|
|
|
| |
* examples/network/resolver.cc (interrupted): Check the return value
of the write() call to avoid a warning from GCC. Save and restore
the value of errno to make the signal handler reentrant. Get rid of
the signal() call to re-establish the default handler, as there is
not much of a point in doing so for this handler.
(main): Create the pipe before installing the signal handler.
|
|
|
|
| |
warnings are errors in distcheck
|
|
|
|
|
| |
I wasn't splitting the service triples properly. resolving a service should
work now. For example, try: ./resolver xmpp-server/tcp/google.com
|
|
|
|
| |
This was causing a bunch of warnings in the examples
|
|
|
|
|
| |
InetAddress needed a couple additions / modifications for the example to work
properly.
|
| |
|
|
There is a bit of a problem with some of the async stuff that is exhibited by
the included resolver example. For example, when run the example with the
following arguments:
./resolver -c domain.com
There are several critical warnings printed to the terminal, and I have not been
able to debug it to find the cause yet. I think it must have something to with
the lifetime of the enumerator object during the next_async() calls and
sigc::bind, etc. but I can't figure it out yet.
|