[riot-notifications] [RIOT] gnrc netreg: make message queue mandatory (#4010)

Martine Lenders notifications at github.com
Wed Sep 30 19:28:11 CEST 2015


> @@ -37,6 +37,9 @@ void gnrc_netreg_init(void)
>  
>  int gnrc_netreg_register(gnrc_nettype_t type, gnrc_netreg_entry_t *entry)
>  {
> +    /* only threads with a message queue are allowed to register at gnrc */
> +    assert(sched_threads[sched_active_pid]->msg_array);

Ah wait. Shouldn't that be `sched_active_thread` instead of `sched_threads[sched_active_pid]`?

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/4010/files#r40823857
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150930/f187c625/attachment.html>


More information about the notifications mailing list