cubeb hack draft
authorTom Ritter <tom@mozilla.com>
Thu, 23 Mar 2017 13:43:29 -0500
changeset 648932 db99d83370bfc26e762070d675441eaf69bb777f
parent 648524 3d11fa2d0a27e14923d8c5df3601934d109c914c
child 648933 bc47f18f089dfb2a4c116aa95213a2f25362139f
push id74928
push userbmo:tom@mozilla.com
push dateFri, 18 Aug 2017 13:49:36 +0000
milestone57.0a1
cubeb hack MozReview-Commit-ID: 8UVYL1iu2rr
media/libcubeb/src/cubeb_log.cpp
--- a/media/libcubeb/src/cubeb_log.cpp
+++ b/media/libcubeb/src/cubeb_log.cpp
@@ -68,16 +68,17 @@ public:
   }
   void push(char const str[CUBEB_LOG_MESSAGE_MAX_SIZE])
   {
     cubeb_log_message msg(str);
     msg_queue.enqueue(msg);
   }
   void run()
   {
+    /*
     std::thread([this]() {
       while (true) {
         cubeb_log_message msg;
         while (msg_queue.dequeue(&msg, 1)) {
           LOGV("%s", msg.get());
         }
 #ifdef _WIN32
         Sleep(CUBEB_LOG_BATCH_PRINT_INTERVAL_MS);
@@ -89,16 +90,17 @@ public:
               errno != EINTR) {
             break;
           }
           sleep_duration = remainder;
         } while (remainder.tv_sec || remainder.tv_nsec);
 #endif
       }
     }).detach();
+    */
   }
 private:
 #ifndef _WIN32
   const struct timespec sleep_for = {
     CUBEB_LOG_BATCH_PRINT_INTERVAL_MS/1000,
     (CUBEB_LOG_BATCH_PRINT_INTERVAL_MS%1000)*1000*1000
   };
 #endif