Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame^] | 1 | // Copyright (c) FIRST and other WPILib contributors. |
| 2 | // Open Source Software; you can modify and/or share it under the terms of |
| 3 | // the WPILib BSD license file in the root directory of this project. |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 4 | |
| 5 | #include "hal/Threads.h" |
| 6 | |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame^] | 7 | namespace hal::init { |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 8 | void InitializeThreads() {} |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame^] | 9 | } // namespace hal::init |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 10 | |
| 11 | int32_t HAL_GetThreadPriority(NativeThreadHandle handle, HAL_Bool* isRealTime, |
| 12 | int32_t* status) { |
| 13 | return 0; |
| 14 | } |
| 15 | int32_t HAL_GetCurrentThreadPriority(HAL_Bool* isRealTime, int32_t* status) { |
| 16 | return 0; |
| 17 | } |
| 18 | HAL_Bool HAL_SetThreadPriority(NativeThreadHandle handle, HAL_Bool realTime, |
| 19 | int32_t priority, int32_t* status) { |
| 20 | return true; |
| 21 | } |
| 22 | HAL_Bool HAL_SetCurrentThreadPriority(HAL_Bool realTime, int32_t priority, |
| 23 | int32_t* status) { |
| 24 | return true; |
| 25 | } |