[riot-notifications] [RIOT-OS/RIOT] core: Added thread_signal & thread_await_signal (#11069)

Marian Buschsieweke notifications at github.com
Tue Feb 26 16:18:03 CET 2019


To compare the two competing PRs here two branches which use `thread_signal()` instead of `thread_flags` in the `kw2xrf` driver.

PR https://github.com/RIOT-OS/RIOT/pull/11006: https://github.com/maribu/RIOT/tree/core_thread_signal_kw2xrf
This PR: https://github.com/maribu/RIOT/tree/core_thread_singal_mutex_kw2xrf

To obtain numbers I build `examples/gnrc_networking` with `BOARD=pba-d-01-kw2x`.

PR https://github.com/RIOT-OS/RIOT/pull/11006:
```
   text	   data	    bss	    dec	    hex	filename
  89996	    200	  19292	 109488	  1abb0	/home/maribu/Repos/software/RIOT/examples/gnrc_networking/bin/pba-d-01-kw2x/gnrc_networking.elf
```

This PR:
```
   text	   data	    bss	    dec	    hex	filename
  90004	    200	  19288	 109492	  1abb4	/home/maribu/Repos/software/RIOT/examples/gnrc_networking/bin/pba-d-01-kw2x/gnrc_networking.elf
```

So this PR add 8 Bytes of ROM and saves 4 Bytes of RAM. More often than not RAM is more scarce then ROM, so this seems to be a good deal :-)

(When running with `BUILD_IN_DOCKER=1` I get other numbers, but still +8 Bytes ROM -4 Bytes RAM.)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11069#issuecomment-467478748
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190226/61cc272c/attachment.html>


More information about the notifications mailing list