[riot-commits] [RIOT-OS/RIOT] d26355: sock_async_event: fix race-condition

Gunar Schorcht noreply at github.com
Fri Feb 21 19:04:32 CET 2020


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: d26355fbb41cdc0cb6a5af17901cd7e95a58bd8a
      https://github.com/RIOT-OS/RIOT/commit/d26355fbb41cdc0cb6a5af17901cd7e95a58bd8a
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2020-02-21 (Fri, 21 Feb 2020)

  Changed paths:
    M sys/net/sock/async/event/sock_async_event.c

  Log Message:
  -----------
  sock_async_event: fix race-condition

If a new event is fired during the execution of the event callback,
`event->type` might change. However as `event->type` is set to 0 after
the execution of the callback, that leads to it being 0 on the next
round of the event handler's execution, leading in the event getting
lost.


  Commit: 8dc53cfd7a212bec5854a88846f9a7a0829051b5
      https://github.com/RIOT-OS/RIOT/commit/8dc53cfd7a212bec5854a88846f9a7a0829051b5
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2020-02-21 (Fri, 21 Feb 2020)

  Changed paths:
    M sys/net/sock/async/event/sock_async_event.c

  Log Message:
  -----------
  Merge pull request #13438 from miri64/sock_async_event/fix/race-condition

sock_async_event: fix race-condition


Compare: https://github.com/RIOT-OS/RIOT/compare/c32be01b7a89...8dc53cfd7a21


More information about the commits mailing list