summaryrefslogtreecommitdiff
path: root/src/common/thread.cpp
AgeCommit message (Collapse)Author
2018-11-22common/thread: Drop Hungarian notation on SetCurrentThreadName's parameterLioncash
This is inconsistent with our coding style.
2018-11-21common/thread: Remove SleepCurrentThread()Lioncash
This is also unused and superceded by standard functionality. The standard library provides std::this_thread::sleep_for(), which provides a much more flexible interface, as different time units can be used with it.
2018-11-21common/thread: Remove unused CurrentThreadId()Lioncash
This is an old function that's no longer necessary. C++11 introduced proper threading support to the language and a thread ID can be retrieved via std::this_thread::get_id() if it's ever needed.
2016-12-05Support mingw cross-compileJannik Vogel
2016-10-27common: only FreeBSD has thread affinity compatible with LinuxJan Beich
src/common/thread.cpp:90:5: error: unknown type name 'cpu_set_t'; did you mean 'cpuset_t'? cpu_set_t cpu_set; ^~~~~~~~~ cpuset_t /usr/include/sys/_cpuset.h:48:24: note: 'cpuset_t' declared here typedef struct _cpuset cpuset_t; ^ 1 error generated.
2016-10-27common: define routines to set thread name on more BSDsJan Beich
src/common/thread.cpp:123:5: error: use of undeclared identifier 'pthread_setname_np' pthread_setname_np(pthread_self(), szThreadName); ^ 1 error generated.
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot
2015-06-28Common: Cleanup thread includes.Emmanuel Gil Peyrot
2014-12-29Fix MSVC-related #defines and add CMakeLists commentdarkf
2014-12-29Fix merge conflictsdarkf
2014-12-20License changepurpasmart96
2014-11-28Fix MinGW builddarkf
2014-11-19Remove trailing spaces in every file but the ones imported from SkyEye, AOSP ↵Emmanuel Gil Peyrot
or generated
2014-09-08common: Prune all redundant includesarchshift
2014-09-07Removed common/std_xyz, instead using the std headerarchshift
2014-08-07Use pthread_set_name_np() on OpenBSD.Anthony J. Bentley
2014-04-08fixed project includes to use new directory structurebunnei
2014-04-08got rid of 'src' folders in each sub-projectbunnei