Brian Silverman | 41cdd3e | 2019-01-19 19:48:58 -0800 | [diff] [blame] | 1 | /*----------------------------------------------------------------------------*/ |
| 2 | /* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */ |
| 3 | /* Open Source Software - may be modified and shared by FRC teams. The code */ |
| 4 | /* must be accompanied by the FIRST BSD license file in the root directory of */ |
| 5 | /* the project. */ |
| 6 | /*----------------------------------------------------------------------------*/ |
| 7 | |
| 8 | #include "hal/Threads.h" |
| 9 | |
| 10 | namespace hal { |
| 11 | namespace init { |
| 12 | void InitializeThreads() {} |
| 13 | } // namespace init |
| 14 | } // namespace hal |
| 15 | |
| 16 | int32_t HAL_GetThreadPriority(NativeThreadHandle handle, HAL_Bool* isRealTime, |
| 17 | int32_t* status) { |
| 18 | return 0; |
| 19 | } |
| 20 | int32_t HAL_GetCurrentThreadPriority(HAL_Bool* isRealTime, int32_t* status) { |
| 21 | return 0; |
| 22 | } |
| 23 | HAL_Bool HAL_SetThreadPriority(NativeThreadHandle handle, HAL_Bool realTime, |
| 24 | int32_t priority, int32_t* status) { |
| 25 | return true; |
| 26 | } |
| 27 | HAL_Bool HAL_SetCurrentThreadPriority(HAL_Bool realTime, int32_t priority, |
| 28 | int32_t* status) { |
| 29 | return true; |
| 30 | } |