[riot-commits] [RIOT-OS/RIOT] 624957: pthread_cond.h: use 'sys/types.h' value of 'clocki...

Juan I Carrano noreply at github.com
Thu Sep 12 16:42:02 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 624957252eb4a5a4380a0f4c207cec12f113905b
      https://github.com/RIOT-OS/RIOT/commit/624957252eb4a5a4380a0f4c207cec12f113905b
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M sys/posix/pthread/include/pthread_cond.h

  Log Message:
  -----------
  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.


  Commit: 5c405b56f846235843bc2801f61e8e9bd6bf735c
      https://github.com/RIOT-OS/RIOT/commit/5c405b56f846235843bc2801f61e8e9bd6bf735c
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M tests/pthread_condition_variable/main.c

  Log Message:
  -----------
  tests/pthread_condition_variable: adapt for slow boards

Reduce the number of required iterations on boards.
This will allow running it on 'arduino-mega2560'.


  Commit: 9ee84c62c948fc287f08c7bc4e2c4ae46b329eef
      https://github.com/RIOT-OS/RIOT/commit/9ee84c62c948fc287f08c7bc4e2c4ae46b329eef
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M tests/pthread/Makefile
    M tests/pthread_barrier/Makefile
    M tests/pthread_cleanup/Makefile
    M tests/pthread_condition_variable/Makefile
    M tests/pthread_cooperation/Makefile
    M tests/pthread_flood/Makefile
    M tests/pthread_rwlock/Makefile
    M tests/pthread_tls/Makefile

  Log Message:
  -----------
  tests/pthread*: enable pthread tests on avr

'pthread' is now compatible with 'avr' so enable them in tests.
All the tests ran on 'arduino-mega2560' when supported.


  Commit: e9ca2114ee2e3f05ae328d48bcd8ad9749a747bc
      https://github.com/RIOT-OS/RIOT/commit/e9ca2114ee2e3f05ae328d48bcd8ad9749a747bc
  Author: Juan I Carrano <j.carrano at fu-berlin.de>
  Date:   2019-09-12 (Thu, 12 Sep 2019)

  Changed paths:
    M sys/posix/pthread/include/pthread_cond.h
    M tests/pthread/Makefile
    M tests/pthread_barrier/Makefile
    M tests/pthread_cleanup/Makefile
    M tests/pthread_condition_variable/Makefile
    M tests/pthread_condition_variable/main.c
    M tests/pthread_cooperation/Makefile
    M tests/pthread_flood/Makefile
    M tests/pthread_rwlock/Makefile
    M tests/pthread_tls/Makefile

  Log Message:
  -----------
  Merge pull request #12204 from cladmi/pr/pthread/enable_avr

pthread_cond.h: use 'sys/types.h' value of 'clockid_t' for avr. Enables pthread on AVR.


Compare: https://github.com/RIOT-OS/RIOT/compare/6570a9b31f59...e9ca2114ee2e


More information about the commits mailing list