chenliangyu 1 жил өмнө
parent
commit
70d852f68f

+ 1 - 0
Module/mod_chromium/CModTools.cpp

@@ -1054,6 +1054,7 @@ namespace Chromium {
 
 	void CModTools::cefClientGuardian(std::string cmdline)
 	{
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 		m_isGuardMainBrowser = true;
 		while (m_isGuardMainBrowser)
 		{

+ 1 - 1
Module/mod_chromium/CSocketClient.cpp

@@ -216,7 +216,7 @@ namespace Chromium {
 	}
 
 	void CSocketClient::thread_recv() {
-
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 		try
 		{
 			// time out for select

+ 3 - 1
Module/mod_chromium/CWebsocketServer.cpp

@@ -639,6 +639,7 @@ namespace Chromium {
 
 		auto msgHandleFun = [&]() {
 			//DbgEx("CWebsocketServer -> message_handler");
+			DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 			std::string payload = msg->get_payload();
 			// proto convert here
 #if (defined _WIN32 || defined _WIN64)
@@ -787,7 +788,7 @@ namespace Chromium {
 	}
 
 	void CWebsocketServer::do_run() {
-
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 		// Start the Asio io_service run loop
 		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("CWebsocketServer -> do_run, Start the Asio io_service run loop");
 		while (!boost::this_thread::interruption_requested())
@@ -1112,6 +1113,7 @@ namespace Chromium {
 
 	// socket message handler
 	void CWebsocketServer::message_from_socket(CMessage& msg, unsigned int id) {
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 		// get message from socket and deserialize 
 		// then send back to the web client
 		auto bufferLength = msg.getBufferLength();

+ 5 - 0
Module/mod_chromium/mod_chromium.cpp

@@ -706,6 +706,7 @@ namespace Chromium {
 
 		//all the init,register,openWeb run thread
 		auto startFun = [&]() {
+			DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 			DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("OnPreStart - startFun");
 			// init cef logger first
 #if (defined _WIN32 || defined _WIN64)
@@ -788,6 +789,7 @@ namespace Chromium {
 
 	void CChromiumEntity::DoWithSysVarEvent()
 	{
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 		while (true)
 		{
 			if (m_eventArr.empty())
@@ -1022,6 +1024,7 @@ namespace Chromium {
 			tmpDirArr.get()->push_back(it);
 
 		auto runCacheClean = [](std::shared_ptr<std::vector<std::string>> p) ->void {
+			DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 			CModTools::get_mutable_instance().StopChromiumBrowser(ERR_PAGE_REASON::breakdown, true);//close all tab
 			for each (auto it in *p.get())
 			{
@@ -1092,6 +1095,7 @@ namespace Chromium {
 	}
 
 	void CChromiumEntity::checkUrlStartTime() {
+		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 		std::string startTimeStr = boost::posix_time::to_iso_extended_string(boost::posix_time::microsec_clock::local_time());
 		int pos = startTimeStr.find('T');
 		startTimeStr.replace(pos, 1, std::string(" "));
@@ -1200,6 +1204,7 @@ namespace Chromium {
 			else
 			{
 				auto monitorThread = [&](HANDLE job, HANDLE process) {
+					DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 					while (1)
 					{
 						if (WaitForSingleObject(process, 10) != WAIT_OBJECT_0)	//process end

+ 1 - 1
addin/cmake/DependencyConanFiles.cmake

@@ -69,7 +69,7 @@ if(MSVC)
 			#mod_chromium
 			CEFControl/1.0@LR04.02_ThirdParty/testing
 			#mod_chromium
-			cefclient_mutable/2.0.34@LR04.02_ThirdParty/testing
+			cefclient_mutable/2.0.36@LR04.02_ThirdParty/testing
 			#libaudiorender
 			speex/1.2.1@LR04.02_ThirdParty/testing
 			#libvideoframework