Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Source/Lib/Codec/EbThreads.c
Co-authored-by: Christopher Degawa <[email protected]>
  • Loading branch information
tianjunwork and 1480c1 authored Aug 11, 2020
commit 3ca70fbc76b5e1d07958c953b89f14b3a8608c47
3 changes: 1 addition & 2 deletions Source/Lib/Codec/EbThreads.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ EB_HANDLE EbCreateThread(
pthread_attr_setschedpolicy(&attr, SCHED_FIFO);
pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);

struct sched_param param = {.sched_priority = 99};
pthread_attr_setschedparam(&attr, &param);
pthread_attr_setschedparam(&attr, &(struct sched_param){.sched_priority = 99});

int ret = pthread_create(
(pthread_t*)threadHandle, // Thread handle
Expand Down