@@ -147,11 +147,11 @@ NetworkLoop::NetworkLoop(core::IPool& packet_pool,
147147 init_status_ = status::StatusErrThread;
148148 return ;
149149 }
150-
151- while (init_status_ == status::NoStatus) {
152- core::Mutex::Lock lock (thr_init_mutex_);
153- thr_init_cond_.wait ();
154- }
150+ init_status_ = status::StatusOK;
151+ // while (init_status_ == status::NoStatus) {
152+ // core::Mutex::Lock lock(thr_init_mutex_);
153+ // thr_init_cond_.wait();
154+ // }
155155}
156156
157157NetworkLoop::~NetworkLoop () {
@@ -286,21 +286,21 @@ void NetworkLoop::handle_resolved(ResolverRequest& req) {
286286
287287void NetworkLoop::run () {
288288 roc_log (LogDebug, " network loop: starting event loop" );
289- if (realtime_prio_ > 0 && !enable_realtime (realtime_prio_)) {
290- core::Mutex::Lock lock (thr_init_mutex_);
291-
292- roc_log (LogError,
293- " network loop: can't set realtime priority of network thread. May need "
294- " to be root" );
295- init_status_ = status::StatusFailedRealtime;
296- thr_init_cond_.signal ();
297- } else {
298- core::Mutex::Lock lock (thr_init_mutex_);
299-
300- roc_log (LogDebug, " network loop: elevated realtime priority" );
301- init_status_ = status::StatusOK;
302- thr_init_cond_.signal ();
303- }
289+ // if (realtime_prio_ > 0 && !enable_realtime(realtime_prio_)) {
290+ // core::Mutex::Lock lock(thr_init_mutex_);
291+ //
292+ // roc_log(LogError,
293+ // "network loop: can't set realtime priority of network thread. May need "
294+ // "to be root");
295+ // init_status_ = status::StatusFailedRealtime;
296+ // thr_init_cond_.signal();
297+ // } else {
298+ // core::Mutex::Lock lock(thr_init_mutex_);
299+ //
300+ // roc_log(LogDebug, "network loop: elevated realtime priority");
301+ // init_status_ = status::StatusOK;
302+ // thr_init_cond_.signal();
303+ // }
304304
305305 int err = uv_run (&loop_, UV_RUN_DEFAULT );
306306 if (err != 0 ) {
0 commit comments