Commit Graph

68 Commits (af02e2ac15631069c7d40ab61182fde2eccd95f3)

Author SHA1 Message Date
Oleg Hahm bdcf8879fd core: merged kernel_macros.h and attributes.h
Merged into new kernel_defines.h and updated all includes.
8 years ago
Kaspar Schleiser 2b010b5337 core: rename tcb_t -> thread_t, move into thread.h 8 years ago
Kaspar Schleiser 9082273746 core: header cleanup 8 years ago
Hauke Petersen 41979b64cd sys: adapted to renamed THREAD FLAGS 8 years ago
Kaspar Schleiser effb15a2cc Merge pull request #3313 from gebart/pr/eINT-fixes
eINT/dINT fixes
8 years ago
Joakim Nohlgård 98c465008b all: Update @gebart family name, email 8 years ago
Joakim Gebart 0cfe6d15dc sys/posix/pthread: Replace dINT by disableIRQ 8 years ago
Kaspar Schleiser 6f21fd806c sys: posix: pthread_cond: remove unnecessary define 8 years ago
Joakim Gebart ab9d924c67 sys/posix/pthread: use atomic_int_t for pthread_spinlock_t 8 years ago
Hauke Petersen 9943f51080 global: renamed cpu-conf.h into cpu_conf.h 8 years ago
Joakim Gebart 718664dacc sys/posix/pthread: Use atomic_int_t to handle spin lock 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 e3a5bb25af Add fix for clockid_t on OS X 9 years ago
Martin Landsmann 6e90ad6d73 sys/posix/pthread: added dynamic pthread thread local storage 9 years ago
Ludwig Ortmann 0027f90be4 Merge pull request #2118 from OlegHahm/simplify_cpu_folder_structure
cpu: simplify folder structure
9 years ago
Oleg Hahm 26ab4829d7 doc: fix posix wrapper documentation 9 years ago
Oleg Hahm 0ccf1043de doc: fixed broken doxygen references 9 years ago
Oleg Hahm 0c967c4d3f cpu: msp430: renamed msp430x16x to msp430fxyz 9 years ago
Oleg Hahm 037571445c Merge pull request #1974 from OlegHahm/cleanup_licenses
licenses: fix miss-spelled & missing boiler plates
9 years ago
Oleg Hahm 39abba1bc2 licenses: fix miss-spelled & missing boiler plates 9 years ago
BytesGalore de3c3cebd0 c++: sys: add extern C to header files 9 years ago
Ludwig Ortmann b7992922ce fix license headers in non-.c files 9 years ago
René Kijewski 2cb4166c3e all over the place: use sched_active_pid
In many places we needlessly use `sched_active_thread->pid` whilst we
already have `sched_active_pid` with the same value, and one less
indirection.

`thread_getpid()` is made `static inline` so that there is no penalty in
using this function over accessing `sched_active_pid` directly.
9 years ago
René Kijewski f3fcc1d5dd pthread: pthread_barrier should call yield 9 years ago
Oleg Hahm 1de5c2b4a0 fixed remaining variables to kernel_pid_t 9 years ago
Oleg Hahm 74fbff1df2 net: changed name of internal variable
To avoid naming conflicts + made variable static and volatile as it
should be.
9 years ago
Oleg Hahm 0ad7b170ed make kernel_pid_t comparisons consistent 9 years ago
Oleg Hahm aa2ecf6216 initialize kernel_pid_t correctly 9 years ago
Oleg Hahm c2b0423918 core: renamed KERNEL_PID_NULL to KERNEL_PID_UNDEF
As @authmillenon pointed out the "null" in the old name is somewhat
misleading, since the actual value is -1.
9 years ago
Ludwig Ortmann c2b2e4554b core/queue: queue -> priority_queue
Rename queue to priority queue, because that's what it is.
9 years ago
Oleg Hahm 983d056c75 core: harmonizes the data type for the process ID
Instead of using differing integer types use kernel_pid_t for process
identifier. This type is introduced in a new header file to avoid
circular dependencies.
9 years ago
Ludwig Ortmann 3ca4f18479 doc: use lgplv2.1-short license header instead of lgpl-short-riot 9 years ago
René Kijewski 4032a22719 queue: add queue_t root type 9 years ago
René Kijewski ba1a15535b core: remove extra thread_create_arg() function 9 years ago
René Kijewski 840c0f0a57 make: detect their module name automatically
For many modules the `Makefile` contains a line like
```
MODULE:=$(shell basename $(CURDIR))
```
This conclusively shows that we do not have to set the module name
manually.

This PR removes the need to set the module name manually, if it is the
same as the basename. E.g. for `…/sys/vtimer/Makefile` the variable
make `MODULE` will still be `vtimer`, because it is the basename of the
Makefile.
9 years ago
René Kijewski 05a4bf7f04 Merge pull request #1057 from Kijewski/sched_switch-current_prio
core: imply current_prio in `sched_switch()`
9 years ago
Martin Lenders 2362623490 Fix trailing whitespaces
Fixes #1138
9 years ago
René Kijewski a6fd5bff92 core: imply current_prio in `sched_switch()`
There is no need to supply the current priority to `sched_switch()`,
when this function can easily tell the value of
`active_thread->priority` itself.
10 years ago
Christian Mehlis 0aa87a8ee7 Merge pull request #1208 from Kijewski/issue-1199
documentation: fix doxygen for `pthread_*.h`
10 years ago
René Kijewski e135bdc266 documentation: fix doxygen for `pthread_*.h`
The pthread header files aren't in the doxygen page anymore after #1137,
because I `@file`'d the `.c` files, not the `.h` files.

This change moves doxygen boilerplate.

Closes #1199.
10 years ago
Oleg Hahm ef5ec344fd core: prefix API functions correctly
Also changed names for bitarithm functions and rename thread_pid to sched_active_pid.
10 years ago
Ludwig Ortmann 2314915ff2 license: fix license header grammar
insert missing "is"
10 years ago
Martin Landsmann 61b0331980 added `pthread_cond.h` to `pthread.h`
adjusted `test_pthread_condition_variable\main.c` includes reflecting the above change
10 years ago
BytesGalore f4a994ac89 Merge pull request #1076 from BytesGalore/remove_return_from_noreturn_function
sys:posix:pthread removed explicit `return;` from `pthread_exit()`
10 years ago
Martin fc532ad891 added else branch in `pthread_exit()` to avoid calling explicit `return;`
however, this won't help to completely eliminate the warning on returning from a `noreturn` function
10 years ago
Martin 619039e0e2 add pthread condition variable implementation 10 years ago
BytesGalore 9d4d98c9ea Merge pull request #1025 from BytesGalore/add_out_of_bounds_check
sys:posix:pthread added check to avoid array out of bound access
10 years ago
Martin 345e76a0d7 added check to avoid array out of boud access 10 years ago
René Kijewski 9a5a8a2452 Add pthread_rwlock test 10 years ago