- 14 Jan, 2013 6 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 13 Jan, 2013 3 commits
-
-
Denis Krjuchkov authored
It seems that it is not safe to remove the item from std::list while it's being iterated somewhere else. This is a very simple quick fix to make things work until some better solution is implemented.
-
Denis Krjuchkov authored
Pipes aren't really pollable on Windows. GLib emulates polling on pipes using separate reader/writer threads. This adds significant overhead and keeps a strong dependency on GLib. socketpair() function is absent on Windows as well. We implement it here in a loose way.
-
Denis Krjuchkov authored
This change fixes two issues: 1) console_handler is called from a separate thread. Thread-safe primitive is required for correct operation. 2) If console_handler returns TRUE our process is immediately terminated. We use Sleep() to give main thread an opportunity to shutdown correctly.
-
- 11 Jan, 2013 6 commits
-
-
Denis Krjuchkov authored
-
Max Kellermann authored
Use CRITICAL_SECTION and CONDITION_VARIABLE. This requires Windows Vista or newer. It fixes problems with GLib threading objects that were implicitly created by static constructors before g_thread_init().
-
Max Kellermann authored
Work around a build failure due to windows.h macro.
-
Max Kellermann authored
We're going to use Vista features soon. Sorry for those poor people still on XP (or Windows, anyway).
-
Max Kellermann authored
-
Denis Krjuchkov authored
This patch also adds extern "C" { } wrapper around string_util.h to allow its usage in C++ code
-
- 10 Jan, 2013 25 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Use the "url" attribute from the base class instead.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Don't use macro magic, don't dereference the block_param.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
It is illegal to use it after going out of scope.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Switch WIN32 to this implementation to be able to use condition variables, which is impossible with CriticalSection.
-
Max Kellermann authored
The main_cond variable was completely unnecessary. The pc.cond object can be used for both main->pc and pc->main.
-
Max Kellermann authored
Don't let the "client" pass its own GCond. This was not used consistently.
-
Max Kellermann authored
Fixes potential dead lock bug.
-