[riot-notifications] [RIOT-OS/RIOT] core: move scheduler defines (#15481)

benpicco notifications at github.com
Mon Nov 23 17:32:05 CET 2020


@benpicco commented on this pull request.



> +#define KERNEL_PID_FIRST (KERNEL_PID_UNDEF + 1)
+
+/**
+ * The last valid PID (inclusive).
+ */
+#define KERNEL_PID_LAST (KERNEL_PID_FIRST + MAXTHREADS - 1)
+
+/**
+ * Macro for printing formatter
+ */
+#define PRIkernel_pid PRIi16
+
+/**
+ * Unique process identifier
+ */
+typedef int16_t kernel_pid_t;

You just moved [`KERNEL_PID_UNDEF`](https://github.com/RIOT-OS/RIOT/pull/15481/files#diff-2ca01a325111fe84adb41a551530813506b0e34487598e4e75ce640573ca7c35R103) :wink: 

It's 0 - so that's why I'm wondering what negative PIDs mean.

-- 
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/15481#discussion_r528837377
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201123/421a2e7d/attachment.htm>


More information about the notifications mailing list