Changeset 5904
- Timestamp:
- Nov 5, 2018 2:40:54 AM (6 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua2/endpoint.hpp
r5834 r5904 29 29 #include <list> 30 30 #include <map> 31 #include <mutex> 31 32 32 33 /** PJSUA2 API is inside pj namespace */ … … 1597 1598 CodecInfoVector videoCodecInfoList; 1598 1599 std::map<pj_thread_t*, pj_thread_desc*> threadDescMap; 1600 std::mutex threadDescMutex; 1599 1601 1600 1602 /* Pending logging */ -
pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
r5899 r5904 1711 1711 status = pj_thread_register(name.c_str(), *desc, &thread); 1712 1712 if (status == PJ_SUCCESS) { 1713 std::lock_guard<std::mutex> guard(threadDescMutex); 1713 1714 threadDescMap[thread] = desc; 1714 1715 } else { … … 1721 1722 { 1722 1723 if (pj_thread_is_registered()) { 1724 std::lock_guard<std::mutex> guard(threadDescMutex); 1723 1725 /* Recheck again if it exists in the thread description map */ 1724 1726 return (threadDescMap.find(pj_thread_this()) != threadDescMap.end());
Note: See TracChangeset
for help on using the changeset viewer.