Commit Graph

11 Commits (362077d3d53b1ffb32e7151367940d411d04df64)

Author SHA1 Message Date
Joakim Nohlgård 92370e846d sys/cpp11-compat: Add braces around mutex initializer
Fixes Clang warning/error:

    In file included from .../riot/sys/cpp11-compat/thread.cpp:26:
    In file included from .../riot/sys/cpp11-compat/include/riot/thread.hpp:39:
    .../riot/sys/cpp11-compat/include/riot/mutex.hpp:47:45: error:
     suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
      inline constexpr mutex() noexcept : m_mtx{0} {}
                                                ^
                                                {}
    1 error generated.
7 years ago
Kaspar Schleiser 3f021d4db6 sys: cpp11-compat: add missing priority_queue.h include 8 years ago
Kaspar Schleiser 3d9020eb46 sys: cpp11-compat: adapt to changed mutex implementation 8 years ago
kYc0o f92b025b85 vtimer: get rid of 8 years ago
Kaspar Schleiser 9082273746 core: header cleanup 8 years ago
Hauke Petersen 41979b64cd sys: adapted to renamed THREAD FLAGS 8 years ago
BytesGalore 529e83675e cpp11: switched to use xtimer
Also switched the syscalls of cpu/native to use xtimer, only at _gettimeofday()
8 years ago
Joakim Gebart 0a11d79e9d sys/cpp11-compat: chrono: remove unused include cstdio 8 years ago
Joakim Gebart 13832d8e62 everything: Remove filename from @file Doxygen command 8 years ago
Lucas Jenss 426170b064 Improve naming of thread stacksize/priority constants
As discussed in #2725, this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:

* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
8 years ago
Joseph Noir bddaee751d Add replacement headers for thread, mutex and cond
These headers do not provide full stl functionality,
but a small subset:
* thread and this_thread
* condition_variable (some timed functions are missing)
* mutex, lock_guard and unique_lock
8 years ago