summaryrefslogtreecommitdiff
path: root/src/thread
AgeCommit message (Collapse)Author
2014-09-24Merge branch 'v0.18.x'Max Kellermann
2014-09-13thread/Posix{Cond,Mutex}: don't ues PTHREAD_*_INITIALIZER on NetBSDMax Kellermann
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.
2014-07-02thread/{Mutex,Cond}: relicense to BSD-2Max Kellermann
2014-07-02thread/GLib{Mutex,Cond}: remove obsolete classesMax Kellermann
2014-05-31thread/Util: relicense to BSD-2Max Kellermann
2014-03-16thread/Thread: make the destructor non-virtualMax Kellermann
The class does not have any virtual methods, and thus the (debug-only) destructor does not need to be virtual.
2014-03-01thread/Name: fall back to prctl()Max Kellermann
2014-03-01java: new helper library for the Android portMax Kellermann
2014-02-18Thread/Util: use __NR_ioprio_set instead of SYS_ioprio_setMax Kellermann
Bionic doesn't have the SYS_* macros.
2014-02-18Thread/Util: make SCHED_RESET_ON_FORK optionalMax Kellermann
Use it if it exists, but don't insist if the C library is poor (e.g. Bionic/Android).
2014-02-18thread/Posix{Mutex,Cond}: disable "constexpr" on AndroidMax Kellermann
Bionic's pthread declarations are non-literal.
2014-01-30Main, OutputThread: increase kernel timer slack (Linux)Max Kellermann
Allows the kernel to combine timer wakeups with other processes, reducing power usage.
2014-01-28thread/Name: implementation for Mac OS XMax Kellermann
pthread_setname_np() doesn't have the "thread" argument on OS X.
2014-01-23thread/Name: set thread namesMax Kellermann
For debugging.
2014-01-23thread/Util: set the SCHED_RESET_ON_FORK flag in SetThreadRealtime()Max Kellermann
2014-01-14OutputThread: use real-time priorityMax Kellermann
2014-01-14UpdateGlue: let the update thread run at "idle" priorityMax Kellermann
The update thread should not affect the rest of the system, therefore set "idle" priority, and let it only run when nobody else is using the resources.
2014-01-13copyright year 2014Max Kellermann
2013-10-17Thread/Thread: replacement library for GThreadMax Kellermann
2013-10-17thread/{Cond,Mutex}: use "class" instead of "typedef"Max Kellermann
Allows forward-declaration.
2013-10-15gcc.h: rename to Compiler.hMax Kellermann
2013-08-10thread/Id: new class replacing GThread pointersMax Kellermann
Remove a GLib dependencies from class EventLoop and DatabaseLock.
2013-04-17thread/Cond: add method timed_wait()Max Kellermann
2013-01-11thread/{Mutex,Cond}: new backend for WIN32Max Kellermann
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().
2013-01-10thread/Cond: new wrapper for pthread_cond_t or GCondMax Kellermann
2013-01-10thread/GLibMutex: new Mutex implementationMax Kellermann
Switch WIN32 to this implementation to be able to use condition variables, which is impossible with CriticalSection.
2013-01-10thread/PosixMutex: fix indentMax Kellermann
2013-01-07thread/Mutex: don't use std::mutexMax Kellermann
Use a custom pthread_mutex_t wrapper because std::mutex adds overhead.
2013-01-04Mutex: new wrapper for std::mutex, replaces GMutexMax Kellermann