| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
The "::" to explicitly refer to the global namespace appeared like a
good idea in C++, but it breaks with C libraries that implement
standard functions using macros (e.g. musl).
|
|
|
|
|
|
|
|
|
|
| |
On NetBSD, PTHREAD_MUTEX_INITIALIZER and PTHREAD_COND_INITIALIZER are
not compatible with C++11 "constexpr" (see Mantis ticket 0004110). As
a workaround, don't ues "constexpr", and use the functions
pthread_mutex_init(), pthread_mutex_destroy(), pthread_cond_init() and
pthread_cond_destroy() instead. This adds some runtime overhead, but
is portable to POSIX implementations that have awkward initializer
macros.
|
| |
|
|
|
|
| |
Allows forward-declaration.
|
| |
|
|
|
|
| |
Remove a GLib dependencies from class EventLoop and DatabaseLock.
|
| |
|
|
|
|
|
|
| |
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().
|
| |
|
|
|
|
|
| |
Switch WIN32 to this implementation to be able to use condition
variables, which is impossible with CriticalSection.
|
| |
|
|
|
|
| |
Use a custom pthread_mutex_t wrapper because std::mutex adds overhead.
|
|
|