@@ -66,15 +66,15 @@ status_t AAH_RXPlayer::startWorkThread() {
6666
6767void AAH_RXPlayer::stopWorkThread () {
6868 thread_wrapper_->requestExit (); // set the exit pending flag
69- wakeup_work_thread_evt_. setEvent ( );
69+ signalEventFD (wakeup_work_thread_evt_fd_ );
7070
7171 status_t res;
7272 res = thread_wrapper_->requestExitAndWait (); // block until thread exit.
7373 if (res != OK) {
7474 LOGE (" Failed to stop work thread (res = %d)" , res);
7575 }
7676
77- wakeup_work_thread_evt_. clearPendingEvents ( );
77+ clearEventFD (wakeup_work_thread_evt_fd_ );
7878}
7979
8080void AAH_RXPlayer::cleanupSocket () {
@@ -292,7 +292,7 @@ bool AAH_RXPlayer::threadLoop() {
292292 if ((0 != timeout) && (!process_more_right_now)) {
293293 // Set up the events to wait on. Start with the wakeup pipe.
294294 memset (&poll_fds, 0 , sizeof (poll_fds));
295- poll_fds[0 ].fd = wakeup_work_thread_evt_. getWakeupHandle () ;
295+ poll_fds[0 ].fd = wakeup_work_thread_evt_fd_ ;
296296 poll_fds[0 ].events = POLLIN;
297297
298298 // Add the RX socket.
@@ -313,7 +313,7 @@ bool AAH_RXPlayer::threadLoop() {
313313 break ;
314314 }
315315
316- wakeup_work_thread_evt_. clearPendingEvents ( );
316+ clearEventFD (wakeup_work_thread_evt_fd_ );
317317 process_more_right_now = false ;
318318
319319 // Step 2: Do we have data waiting in the socket? If so, drain the
0 commit comments