Skip to content
Snippets Groups Projects
  1. Mar 29, 2016
  2. Mar 20, 2016
  3. Feb 28, 2016
  4. Dec 07, 2015
  5. Sep 19, 2015
  6. May 28, 2015
  7. May 20, 2015
    • Lucas Jenss's avatar
      Improve naming of thread stacksize/priority constants · 426170b0
      Lucas Jenss authored
      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
      426170b0
  8. Jan 27, 2015
  9. Aug 07, 2014
  10. Aug 05, 2014
  11. Aug 01, 2014
  12. Jul 31, 2014
  13. Jul 09, 2014
  14. May 24, 2014
  15. May 18, 2014
  16. May 14, 2014
  17. Apr 30, 2014
  18. Apr 25, 2014
  19. Apr 18, 2014
  20. Apr 17, 2014
  21. Apr 16, 2014
  22. Apr 04, 2014
    • René Kijewski's avatar
      posix: Add pthread_cleanup handlers · b5496268
      René Kijewski authored
      With `pthread_cleanup_(push|pop)` you can define a function that should
      be ran if the thread is exited while it is inside this scope. A thread
      can be ended here through an explicit call to `pthread_exit()`, or if
      cancellation was requested and a cancellation point was hit.
      
      `pthread_cleanup_*` is mostly only useful together with cancellation
      points, and cancellation points are only useful with a cleanup
      functionality. Cancellation points are at least partially implemented by
      means of `pthread_testcancel()`.
      
      C.f. ["Cancellation Points"][1].
      
        [1]: http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_09_05_02
      b5496268
  23. Mar 03, 2014
  24. Feb 25, 2014
  25. Feb 21, 2014
    • René Kijewski's avatar
      Fix `pthread_self()` confusion · ca4337ab
      René Kijewski authored
      This fixes #755.
      
      The pthread ID cannot be reused as soon as the thread ends, because
      another thread needs to join it first. `pthread_self()` uses the native
      (i.e. RIOT's) thread ID to distinguish itself. A native thread ID can be
      reused as soon as the thread ends, since the core knows no join
      operation.
      
      In order to not confuse itself with an earlier zombie thread (i.e a dead
      non-detached thread, that was not joined, yet), we need to invalidate
      the associated native thread ID.
      
      This approach is sane since a dead thread won't call `pthread_self()`
      anymore.
      ca4337ab
    • René Kijewski's avatar
      Fix linkage of pthread_reaper_stack · cb423c0a
      René Kijewski authored
      cb423c0a
  26. Feb 19, 2014
Loading