Juergen Fitschen
d9cde14669
treewide: fix typos found by recent codespell
2022-11-24 14:53:48 +01:00
Benjamin Valentin
6e7d5ae2d3
codespell: fix remaining issues
2022-09-16 14:00:35 +02:00
dcbcc53343
sys/posix/pthread: improve Kconfig dependency resolution
2022-04-28 08:49:54 +02:00
c38eb27fe0
sys/posix: add Kconfig file for pthread module
2022-04-24 21:23:33 +02:00
Francisco Molina
0fa1551500
sys/posix: convert to ztimer64_usec
2022-03-10 14:24:57 +01:00
Gunar Schorcht
c09d9d87b7
sys/posix/pthread: newlib compatibility
...
When using a toolchain with built-in POSIX thread support, static C++ constructors use a static mutex variable which is initialized with `pthread_once` when first used. However, since RIOT's `pthread_once_t` type is different from that in newlib's `pthread`, which is assumed by GCC, RIOT crashes as soon as static constructors are used.
Changing the `pthread_once_t` type to be compatible with newlib's `pthread_once_t` type solves the problem and allows the RIOT `pthread` modules to be used even with toolchains with built-in POSIX thread support.
2022-03-02 11:57:47 +01:00
Bas Stottelaar
922e2ac1c9
sys/*: replace #if ENABLE_DEBUG with IS_ACTIVE
2020-11-02 21:49:39 +01:00
Bas Stottelaar
1b35d06a51
sys/*: realign ENABLE_DEBUG
2020-10-23 11:27:48 +02:00
13a897e2c7
sys/posix/pthread: fix typo 'defore' -> 'before'
2020-10-02 08:15:31 +02:00
Marian Buschsieweke
3b6fa61829
sys: Cleanup access to internal variables
...
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:
1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
functions
2020-08-24 20:28:11 +02:00
30cf61dd35
cpu/msp430: remove obsolete msp430 specific headers
2020-08-05 14:29:07 +02:00
09748efc11
sys/posix: fix typos
2019-11-23 22:39:38 +01:00
Francois Berder
4a31f94cfc
many typo fixes
...
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
Martine Lenders
ea4b78654f
Merge pull request #12285 from JulianHolzwarth/pr/posix/pthread/pthread_reaper_fix
...
sys/posix/pthread/pthread.c: fix pthread reaper
2019-10-29 18:56:36 +01:00
Benjamin Valentin
764a9e9f63
sys/pthread: check return value of malloc()
...
To prevent a NULL pointer dereference on a memory constrained system,
check if malloc() was actually successful.
2019-10-20 14:17:07 +02:00
Gaëtan Harter
a889e500f0
pthread: make pthread reaper stacksize configurable
...
new define 'CONFIG_PTHREAD_REAPER_BASE_STACKSIZE' to change pthread reaper for boards that need more stack
default value is 'THREAD_STACKSIZE_IDLE'
2019-09-25 16:14:29 +02:00
JulianHolzwarth
a4d0c8a8e7
sys/posix/pthread/pthread.c: reduce pthread reaper size
2019-09-20 15:07:49 +02:00
JulianHolzwarth
d6bc8685f7
sys/posix/pthread/pthread.c: create thread sleeping
...
creating the pthread sleeping and waking it up instead of THREAD_CREATE_WOUT_YIELD and then yielding(sched_switch)
2019-09-20 15:07:49 +02:00
JulianHolzwarth
28719bae37
sys/posix/pthread/pthread.c: check reaper creation
...
Checking whether or not the pthread reaper was created
And handeling the error when it was not created
2019-09-20 15:07:49 +02:00
JulianHolzwarth
31b3aeb48c
sys/posix/pthread/pthread.c: Reaper fix
...
before the reaper was never created
2019-09-20 15:07:48 +02:00
Gaëtan Harter
624957252e
pthread_cond.h: use 'sys/types.h' value of 'clockid_t' for avr
...
This enables 'pthread' support on arduino.
avr-libc C90 'time.h' does not include 'sys/types.h' as POSIX expects it.
However, the type previously defined conflicts with the one in
'cpu/atmega_common/avr_libc_extra/include/sys/types.h' when both are
included, so include 'sys/types.h'.
Maybe it should alway be included by 'time.h' but this
would need its specific review.
2019-09-11 18:25:10 +02:00
JulianHolzwarth
d76bb689d6
sys/posix/pthread/pthread.c: pthread_create fix
...
The function insert returns KERNEL_PID_UNDEF now because pthread_create checks for it.
In pthread_create it checks now if thread_create returns a valid pid
2019-09-06 15:54:59 +02:00
998fd6bcc9
sys/pthread: deduplicate pthread group definition
2019-08-05 16:57:36 +02:00
Jose Alamos
f2ff06c9d4
posix/pthread_rwlock: fix unsigned variable comparison
2018-08-21 13:58:39 +02:00
Gunar Schorcht
9db03537b9
core/pthread: make them compilable with g++
2018-07-21 14:24:57 +02:00
smlng
6b0491eca2
sys/posix: fix intentional fallthrough in pthread
2018-01-16 13:21:24 +01:00
702ec4a517
sys/posix: pthread_barrier: DEBUG fix
2018-01-15 14:37:04 +01:00
c6b482d56c
posix: pthread_rwlock: fix DEBUG messages
2018-01-15 14:37:04 +01:00
smlng
b283b7784c
make: fix various compile errors with Wextra
...
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
sys, pm_layered: fix casting nonscalar to the same type
cpu, stm32_common: fix type-limits, remove always true assert
cpu, stm32f4: fix pointer arithmetic in periph/i2c
drivers, at86rf2xx: fix type-limits where condition always true
saul, gpio: fix if no gpio configured for saul
cpu, saml21: add frequency check to periph/timer
driver, cc110x: fix unused param and type-limts errors
boards, wsn430-common: fix old-style-declaration
make: fix old style definition
drivers, sdcard_spi: fix old style typedef
driver, at30tse: remove unnecessary check
driver, nrf24: fix type-limit
driver, pn532: change buffer from char to uint8_t
tests/driver_sdcard: fix type limits
boards, feather-m0: add missing field inits
driver, tcs37727: fix type limits
pkg, emb6: disable some compiler warnings
tests/emb6: disable some compiler warings
pkg, openthread: fix sign compare and unused params
tests/trickle: fix struct init
tests/pthread_cooperation: fix type limits
board, mips-malta: remove feature periph_uart
shell: fix var size for netif command
gnrc, netif: fix sign-compare
gnrc, nib: fix sign-compare
shell: fix output in netif command
posix: fix type-limits in pthread_cond
2017-11-28 18:31:43 +01:00
smlng
1ed6f84992
doc: fix whitespaces
2017-09-06 08:49:05 +02:00
162478cd6d
spelling: s/initialise/initialize/
2017-09-05 11:04:25 +02:00
smlng
d2fd406e60
posix: fix pthread_cond_wait and pthread_cond_timedwait
2017-06-24 20:28:52 +02:00
smlng
8253510f0b
posix: replace timex in pthread_rwlock
2017-06-21 11:35:27 +02:00
smlng
29d84a6865
posix: replace timex in pthread_cond
2017-06-21 11:24:22 +02:00
Francisco Acosta
3af1fe5675
Merge pull request #7134 from smlng/macos/fix/posix/clockid_t
...
posix: fix redefined clockid_t on macOS
2017-06-13 17:48:20 +02:00
smlng
16bd7db5dc
posix: fix redefined clockid_t on macOS
2017-06-13 17:32:21 +02:00
0fcc7d3834
cleanup: apply headerguard script output
2017-05-24 17:54:02 +02:00
Oleg Hahm
d48330acbb
doc: posix: fix doxygen complaints
2017-03-10 14:56:28 +01:00
Joakim Nohlgård
f055137e02
sys/posix: Add missing Doxygen comment on spinlock flag member
2017-02-08 16:23:51 +01:00
Joakim Nohlgård
597db0358d
sys/posix/pthread: Use C11 atomic instead of atomic.h
2017-02-08 16:23:49 +01:00
Oleg Hahm
3c6678b037
*: fix mismatching endifs for header guards
2017-01-19 18:30:53 +01:00
Oleg Hahm
7ee7801c10
*: remove trailing underscores from header guards
2017-01-19 18:30:53 +01:00
Philippe Coval
20c3aaa448
sys: Fix pthread includes to support avr-libs
...
Missing malloc.h and clock_id_t were causing issues to build.
It was tested with this configuration:
- linux ubuntu 14.04.5
- arduino-mega2560 board
- avr-libc-1.8.0-4.1
This change was needed to build iotivity example
Bug: https://github.com/RIOT-OS/RIOT/issues/6241
Change-Id: I82ce246093b3467dfe9746f999bcc9335dbb65f6
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2017-01-17 19:44:22 +01:00
Laurent Navet
5fe337bc6c
sys: fix include headers guards
2016-10-26 21:53:58 +02:00
7718f114cb
all: remove pointer casts for msg.content.ptr
2016-06-02 23:13:42 +02:00
DipSwitch
21edec412a
posix: Remove _t from struct names
2016-04-11 21:46:54 +02:00
f626ee5969
Merge pull request #4557 from kaspar030/introduce_intrusive_singly_linked_list
...
core: mutex: several optimizations
2016-03-29 22:25:43 +02:00
c0f39bb55f
sys: posix: pthread: fix mutex usage
2016-03-29 21:50:17 +02:00
Yonezawa-T2
1ce140d910
debug: fix compilation error for %p formatter
2016-03-29 11:46:29 +09:00
kYc0o
f92b025b85
vtimer: get rid of
2016-03-24 17:10:54 +01:00