Commit 54fca81
committed
Auto merge of #2384 - youknowone:apple-sched, r=JohnTitor
Add SCHED_* consts to apple platforms
- MacOS: https://github.com/phracker/MacOSX-SDKs/blob/11.3/MacOSX10.11.sdk/usr/include/pthread/pthread_impl.h#L50-L52
I didn't find online references but checked also other SDKs in local machines.
```shell
$ rg '#define SCHED_'
MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/pthread/pthread_impl.h
54:#define SCHED_OTHER 1
55:#define SCHED_FIFO 4
56:#define SCHED_RR 2
AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/pthread/pthread_impl.h
54:#define SCHED_OTHER 1
55:#define SCHED_FIFO 4
56:#define SCHED_RR 2
iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/pthread/pthread_impl.h
54:#define SCHED_OTHER 1
55:#define SCHED_FIFO 4
56:#define SCHED_RR 2
AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk/usr/include/pthread/pthread_impl.h
54:#define SCHED_OTHER 1
55:#define SCHED_FIFO 4
56:#define SCHED_RR 2
iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/pthread/pthread_impl.h
54:#define SCHED_OTHER 1
55:#define SCHED_FIFO 4
56:#define SCHED_RR 2
WatchOS.platform/Developer/SDKs/WatchOS.sdk/usr/include/pthread/pthread_impl.h
54:#define SCHED_OTHER 1
55:#define SCHED_FIFO 4
56:#define SCHED_RR 2
WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/usr/include/pthread/pthread_impl.h
54:#define SCHED_OTHER 1
55:#define SCHED_FIFO 4
56:#define SCHED_RR 2
```2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1108 | 1108 | | |
1109 | 1109 | | |
1110 | 1110 | | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
1111 | 1114 | | |
1112 | 1115 | | |
1113 | 1116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3471 | 3471 | | |
3472 | 3472 | | |
3473 | 3473 | | |
| 3474 | + | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
3474 | 3478 | | |
3475 | 3479 | | |
3476 | 3480 | | |
| |||
0 commit comments