[riot-notifications] [RIOT-OS/RIOT] core: resolve circular dependency (#16458)

Marian Buschsieweke notifications at github.com
Fri May 7 20:01:41 CEST 2021


### Contribution description

Dependency graph before:

```
     +-------------------------------------+
     |                                     |
     |                                     V
+----------+        +-------+         +---------+
| thread.h | -----> | msg.h | ------> | sched.h |
+----------+        +-------+         +---------+
     ^                                     |
     |                                     |
     +-------------------------------------+
```

Dependency graph after:

```
                 +--------------+
                 | core_types.h |
                 +--------------+
                    ^   ^   ^
                    |   |   |
      +-------------+   |   +--------------+
      |                 |                  |
+----------+            |             +---------+
| thread.h |            |             | sched.h |
+----------+            |             +---------+
                        |                  ^
                    +-------+              |
                    | msg.h |--------------+
                    +-------+
```

### Testing procedure

This PR doesn't change code. It only relocates it. Hence, binaries shouldn't change.

### Issues/PRs references

This circular dependency became an issue in https://github.com/RIOT-OS/RIOT/pull/16174
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/16458

-- Commit Summary --

  * core: resolve circular dependency

-- File Changes --

    A core/include/core_types.h (151)
    M core/include/msg.h (20)
    M core/include/sched.h (36)
    M core/include/thread.h (70)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16458.patch
https://github.com/RIOT-OS/RIOT/pull/16458.diff

-- 
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/16458
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210507/b4f96693/attachment.htm>


More information about the notifications mailing list