Showing the changes to codec/decoder/core/src/wels_decoder_thread.cpp (1 of 71 files). Show all
Unified · Split
| @@ -38,29 +38,7 @@ · 37 unmodified lines | |||
| 38 | ************************************************************************************* | 38 | ************************************************************************************* |
| 39 | */ | 39 | */ |
| 40 | 40 | ||
| 41 | |||
| 42 | #ifdef __linux__ | ||
| 43 | #ifndef _GNU_SOURCE | ||
| 44 | #define _GNU_SOURCE | ||
| 45 | #endif | ||
| 46 | #include <sched.h> | ||
| 47 | #elif !defined(_WIN32) && !defined(__CYGWIN__) | ||
| 48 | #include <sys/types.h> | ||
| 49 | #include <sys/param.h> | ||
| 50 | #include <unistd.h> | ||
| 51 | #ifndef __Fuchsia__ | ||
| 52 | #include <sys/sysctl.h> | ||
| 53 | #endif | ||
| 54 | #ifdef __APPLE__ | ||
| 55 | #define HW_NCPU_NAME "hw.logicalcpu" | ||
| 56 | #else | ||
| 57 | #define HW_NCPU_NAME "hw.ncpu" | ||
| 58 | #endif | ||
| 59 | #endif | ||
| 60 | |||
| 61 | #include "wels_decoder_thread.h" | 41 | #include "wels_decoder_thread.h" |
| 62 | #include <stdio.h> | ||
| 63 | #include <stdlib.h> | ||
| 64 | 42 | ||
| 65 | int32_t GetCPUCount() { | 43 | int32_t GetCPUCount() { |
| 66 | WelsLogicalProcessInfo pInfo; | 44 | WelsLogicalProcessInfo pInfo; |