[riot-commits] [RIOT-OS/RIOT] 27e393: core: clist is a cyclic list

Kaspar Schleiser kaspar at schleiser.de
Thu Aug 21 23:03:17 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 27e393621a3ac1398d03f00c560aeae5b9285b0f
      https://github.com/RIOT-OS/RIOT/commit/27e393621a3ac1398d03f00c560aeae5b9285b0f
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M core/clist.c
    M tests/unittests/tests-core/tests-core-clist.c

  Log Message:
  -----------
  core: clist is a cyclic list


  Commit: a5c9d4572d499cba43fd3cfa22d6f8b0d468f39b
      https://github.com/RIOT-OS/RIOT/commit/a5c9d4572d499cba43fd3cfa22d6f8b0d468f39b
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M core/include/clist.h
    A core/include/kernel_macros.h
    M core/sched.c
    M core/thread.c

  Log Message:
  -----------
  core: clist without explicit thread

Right now the core component `clist` is a generic cyclic doubly-linked list.
In the core it is used in `tcb_t::rq_entry`.
Further it is used `net_if.c`.

This commit removes the member `clist_node_t::data` which stored the
pointer to the `tcb_t` instance of which the clist is already a member.
The needless member added `sizeof (int)` bytes to every instance of
`tcb_t`.

In `net_if.c` the clist was used in a type-punned way, so that the
change won't affect it.


  Commit: ee620b1bf7b74cf51ff74ff28551f933b8474c69
      https://github.com/RIOT-OS/RIOT/commit/ee620b1bf7b74cf51ff74ff28551f933b8474c69
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M core/clist.c
    M core/include/clist.h
    A core/include/kernel_macros.h
    M core/sched.c
    M core/thread.c
    M tests/unittests/tests-core/tests-core-clist.c

  Log Message:
  -----------
  Merge pull request #1013 from Kijewski/clist_wo_thread

 core: clist without explicit thread


Compare: https://github.com/RIOT-OS/RIOT/compare/591c76902ecd...ee620b1bf7b7


More information about the commits mailing list