mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-07-26 03:54:15 -04:00
Rebalance demodulator threads, tweak priorities
This commit is contained in:
@@ -42,6 +42,13 @@ void SDRPostThread::threadMain() {
|
||||
int n_read;
|
||||
double seconds = 0.0;
|
||||
|
||||
//#ifdef __APPLE__
|
||||
// pthread_t tID = pthread_self(); // ID of this thread
|
||||
// int priority = sched_get_priority_min( SCHED_RR );
|
||||
// sched_param prio = { priority }; // scheduling priority of thread
|
||||
// pthread_setschedparam( tID, SCHED_RR, &prio );
|
||||
//#endif
|
||||
|
||||
dcFilter = iirfilt_crcf_create_dc_blocker(0.0005);
|
||||
|
||||
liquid_float_complex x, y;
|
||||
|
||||
@@ -89,6 +89,12 @@ int SDRThread::enumerate_rtl() {
|
||||
}
|
||||
|
||||
void SDRThread::threadMain() {
|
||||
//#ifdef __APPLE__
|
||||
// pthread_t tID = pthread_self(); // ID of this thread
|
||||
// int priority = sched_get_priority_min( SCHED_RR );
|
||||
// sched_param prio = { priority }; // scheduling priority of thread
|
||||
// pthread_setschedparam( tID, SCHED_RR, &prio );
|
||||
//#endif
|
||||
|
||||
std::cout << "SDR thread initializing.." << std::endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user