fixup! Avoid infinite blocking on internalWait() by replacing cond_wait with cond_tim... 43/221443/1 submit/tizen/20200121.063631
authorSeungbae Shin <seungbae.shin@samsung.com>
Thu, 2 Jan 2020 10:17:53 +0000 (19:17 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 2 Jan 2020 10:18:16 +0000 (19:18 +0900)
[Version] 0.5.24
[Issue Type] Bug

Change-Id: Ic116edc1ee4a23c2c6a3c5bd3cf4ae96e414b3b8

packaging/capi-media-audio-io.spec
src/cpp/CAudioIO.cpp

index 11038f3cb53a2a02e623ebd734adce8950689012..bf333840ac1e04f7ccba7e4571e43347582b70cc 100644 (file)
@@ -1,6 +1,6 @@
 Name:           capi-media-audio-io
 Summary:        An Audio Input & Audio Output library in Tizen Native API
-Version:        0.5.23
+Version:        0.5.24
 Release:        0
 Group:          Multimedia/API
 License:        Apache-2.0
index bda840096ba38d9e5631aa0f4028267275a0a6b7..c39ec15593a7ea3e1339c9c1ad7eab2f5374462b 100644 (file)
@@ -116,9 +116,10 @@ void CAudioIO::internalWait() {
     until_ts.tv_sec = until.tv_sec;
     until_ts.tv_nsec = until.tv_usec * 1000UL;
 
-    if (pthread_cond_timedwait(&__mCond, &__mCondMutex, &until_ts) != 0) {
+    int ret = pthread_cond_timedwait(&__mCond, &__mCondMutex, &until_ts);
+    if (ret != 0) {
         char str_error[256];
-        AUDIO_IO_LOGE("pthread_cond_timedwait error=%s", strerror_r(errno, str_error, sizeof(str_error)));
+        AUDIO_IO_LOGE("pthread_cond_timedwait error=[%d][%s]", ret, strerror_r(ret, str_error, sizeof(str_error)));
     }
 
     pthread_mutex_unlock(&__mCondMutex);